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

From dbscript Online Help
Jump to: navigation, search
 
Line 127: Line 127:
 
| TIME_ID
 
| TIME_ID
 
| TIME_ID
 
| TIME_ID
|}
 
 
=== Dependencies ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Reference Type
 
| '''Object Type
 
| '''Referencing Object
 
 
|- valign="top"
 
| Select
 
| View
 
| [[SH.PROFITS_(view)|SH.PROFITS]]
 
 
 
|}
 
|}

Latest revision as of 10:35, 27 August 2011

wikibot[edit]

Table SH.COSTS

Columns[edit]

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[edit]

Index Type Columns
COSTS_PROD_BIX PROD_ID
COSTS_TIME_BIX TIME_ID

Check Constraints[edit]

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[edit]

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