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

From dbscript Online Help
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
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 ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 15: Line 14:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
+
 
+
|- valign="top"
|-
 
 
| PROD_ID
 
| PROD_ID
 
| NUMBER
 
| NUMBER
Line 24: Line 22:
 
|  
 
|  
 
|  
 
|  
| COSTS_PROD_BIX
+
|- valign="top"
|-
 
 
| TIME_ID
 
| TIME_ID
 
| DATE(7)
 
| DATE(7)
Line 31: Line 28:
 
|  
 
|  
 
|  
 
|  
| COSTS_TIME_BIX
+
|- valign="top"
|-
 
 
| PROMO_ID
 
| PROMO_ID
 
| NUMBER
 
| NUMBER
Line 38: Line 34:
 
|  
 
|  
 
|  
 
|  
|
+
|- valign="top"
|-
 
 
| CHANNEL_ID
 
| CHANNEL_ID
 
| NUMBER
 
| NUMBER
Line 45: Line 40:
 
|  
 
|  
 
|  
 
|  
|
+
|- valign="top"
|-
 
 
| UNIT_COST
 
| UNIT_COST
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 52: Line 46:
 
|  
 
|  
 
|  
 
|  
|
+
|- valign="top"
|-
 
 
| UNIT_PRICE
 
| UNIT_PRICE
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 59: Line 52:
 
|  
 
|  
 
|  
 
|  
 +
|}
 +
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|- valign="top"
 +
| COSTS_PROD_BIX
 
|  
 
|  
 +
| PROD_ID
 +
|- valign="top"
 +
| COSTS_TIME_BIX
 +
|
 +
| TIME_ID
 
|}
 
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
  
 +
|- valign="top"
 +
| SYS_C005082
 +
| "PROD_ID" IS NOT NULL
 +
|
 +
|- valign="top"
 +
| SYS_C005083
 +
| "TIME_ID" IS NOT NULL
 +
|
 +
|- valign="top"
 +
| SYS_C005084
 +
| "PROMO_ID" IS NOT NULL
 +
|
 +
|- valign="top"
 +
| SYS_C005085
 +
| "CHANNEL_ID" IS NOT NULL
 +
|
 +
|- valign="top"
 +
| SYS_C005086
 +
| "UNIT_COST" IS NOT NULL
 +
|
 +
|- valign="top"
 +
| SYS_C005087
 +
| "UNIT_PRICE" IS NOT NULL
 +
|
 +
|}
  
 +
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 69: 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
 
| TIME_ID
 
| TIME_ID
 
|}
 
|}

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