Difference between revisions of "SH.COSTS (table)"

From dbscript Online Help
Jump to: navigation, search
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table
 
| '''Table
 
| SH.COSTS
 
| SH.COSTS
|-
 
 
|}
 
|}
 
  
 
=== Columns ===
 
=== Columns ===
Line 17: Line 15:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
+
 
|-
+
|- valign="top"
 
| PROD_ID
 
| PROD_ID
 
| NUMBER
 
| NUMBER
Line 24: Line 22:
 
|  
 
|  
 
|  
 
|  
|-
+
|- valign="top"
 
| TIME_ID
 
| TIME_ID
 
| DATE(7)
 
| DATE(7)
Line 30: Line 28:
 
|  
 
|  
 
|  
 
|  
|-
+
|- valign="top"
 
| PROMO_ID
 
| PROMO_ID
 
| NUMBER
 
| NUMBER
Line 36: Line 34:
 
|  
 
|  
 
|  
 
|  
|-
+
|- valign="top"
 
| CHANNEL_ID
 
| CHANNEL_ID
 
| NUMBER
 
| NUMBER
Line 42: Line 40:
 
|  
 
|  
 
|  
 
|  
|-
+
|- valign="top"
 
| UNIT_COST
 
| UNIT_COST
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 48: Line 46:
 
|  
 
|  
 
|  
 
|  
|-
+
|- valign="top"
 
| UNIT_PRICE
 
| UNIT_PRICE
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 62: Line 60:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
+
 
|-
+
|- valign="top"
 
| COSTS_PROD_BIX
 
| COSTS_PROD_BIX
 
|  
 
|  
 
| PROD_ID
 
| PROD_ID
|-
+
|- valign="top"
 
| COSTS_TIME_BIX
 
| COSTS_TIME_BIX
 
|  
 
|  
Line 79: Line 77:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
+
 
|-
+
|- valign="top"
 
| SYS_C005082
 
| SYS_C005082
 
| "PROD_ID" IS NOT NULL
 
| "PROD_ID" IS NOT NULL
 
|  
 
|  
|-
+
|- valign="top"
 
| SYS_C005083
 
| SYS_C005083
 
| "TIME_ID" IS NOT NULL
 
| "TIME_ID" IS NOT NULL
 
|  
 
|  
|-
+
|- valign="top"
 
| SYS_C005084
 
| SYS_C005084
 
| "PROMO_ID" IS NOT NULL
 
| "PROMO_ID" IS NOT NULL
 
|  
 
|  
|-
+
|- valign="top"
 
| SYS_C005085
 
| SYS_C005085
 
| "CHANNEL_ID" IS NOT NULL
 
| "CHANNEL_ID" IS NOT NULL
 
|  
 
|  
|-
+
|- valign="top"
 
| SYS_C005086
 
| SYS_C005086
 
| "UNIT_COST" IS NOT NULL
 
| "UNIT_COST" IS NOT NULL
 
|  
 
|  
|-
+
|- valign="top"
 
| SYS_C005087
 
| SYS_C005087
 
| "UNIT_PRICE" IS NOT NULL
 
| "UNIT_PRICE" IS NOT NULL
Line 112: Line 110:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
+
 
|-
+
|- valign="top"
 
| [[SH.CHANNELS_(table)|SH.CHANNELS]]
 
| [[SH.CHANNELS_(table)|SH.CHANNELS]]
 
| CHANNEL_ID
 
| CHANNEL_ID
 
| CHANNEL_ID
 
| CHANNEL_ID
|-
+
|- valign="top"
 
| [[SH.PRODUCTS_(table)|SH.PRODUCTS]]
 
| [[SH.PRODUCTS_(table)|SH.PRODUCTS]]
 
| PROD_ID
 
| PROD_ID
 
| PROD_ID
 
| PROD_ID
|-
+
|- valign="top"
 
| [[SH.PROMOTIONS_(table)|SH.PROMOTIONS]]
 
| [[SH.PROMOTIONS_(table)|SH.PROMOTIONS]]
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
|-
+
|- valign="top"
 
| [[SH.TIMES_(table)|SH.TIMES]]
 
| [[SH.TIMES_(table)|SH.TIMES]]
 
| TIME_ID
 
| TIME_ID
Line 138: Line 136:
 
| '''Referencing Object
 
| '''Referencing Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View

Revision as of 06:16, 24 June 2010

wikibot

Table SH.COSTS

Columns

Column Data Type Nullable Default Description
PROD_ID NUMBER not null
TIME_ID DATE(7) not null
PROMO_ID NUMBER not null
CHANNEL_ID NUMBER not null
UNIT_COST NUMBER(10, 2) not null
UNIT_PRICE NUMBER(10, 2) not null

Indexes

Index Type Columns
COSTS_PROD_BIX PROD_ID
COSTS_TIME_BIX TIME_ID

Check Constraints

Check Constraint Expression Description
SYS_C005082 "PROD_ID" IS NOT NULL
SYS_C005083 "TIME_ID" IS NOT NULL
SYS_C005084 "PROMO_ID" IS NOT NULL
SYS_C005085 "CHANNEL_ID" IS NOT NULL
SYS_C005086 "UNIT_COST" IS NOT NULL
SYS_C005087 "UNIT_PRICE" IS NOT NULL

Foreign Keys

Relation Column Referenced Column
SH.CHANNELS CHANNEL_ID CHANNEL_ID
SH.PRODUCTS PROD_ID PROD_ID
SH.PROMOTIONS PROMO_ID PROMO_ID
SH.TIMES TIME_ID TIME_ID

Dependencies

Reference Type Object Type Referencing Object
Select View SH.PROFITS