Editing SH.PROMOTIONS (table)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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.PROMOTIONS
 
| SH.PROMOTIONS
|- valign="top"
+
|-
| '''Description
 
| dimension table without a PK-FK relationship with the facts table, to show outer join functionality
 
 
|}
 
|}
  
=== 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 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| PROMO_ID
 
| PROMO_ID
 
| NUMBER(6, 0)
 
| NUMBER(6, 0)
 
| not null
 
| not null
 
|  
 
|  
| primary key column
+
| PROMO_PK
|- valign="top"
+
|
 +
|-
 
| PROMO_NAME
 
| PROMO_NAME
 
| VARCHAR2(30)
 
| VARCHAR2(30)
 
| not null
 
| not null
 
|  
 
|  
| promotion description
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_SUBCATEGORY
 
| PROMO_SUBCATEGORY
 
| VARCHAR2(30)
 
| VARCHAR2(30)
 
| not null
 
| not null
 
|  
 
|  
| enables to investigate promotion hierarchies
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_SUBCATEGORY_ID
 
| PROMO_SUBCATEGORY_ID
 
| NUMBER
 
| NUMBER
Line 43: Line 45:
 
|  
 
|  
 
|  
 
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_CATEGORY
 
| PROMO_CATEGORY
 
| VARCHAR2(30)
 
| VARCHAR2(30)
 
| not null
 
| not null
 
|  
 
|  
| promotion category
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_CATEGORY_ID
 
| PROMO_CATEGORY_ID
 
| NUMBER
 
| NUMBER
Line 55: Line 59:
 
|  
 
|  
 
|  
 
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_COST
 
| PROMO_COST
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
 
| not null
 
| not null
 
|  
 
|  
| promotion cost, to do promotion effect calculations
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_BEGIN_DATE
 
| PROMO_BEGIN_DATE
 
| DATE(7)
 
| DATE(7)
 
| not null
 
| not null
 
|  
 
|  
| promotion begin day
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_END_DATE
 
| PROMO_END_DATE
 
| DATE(7)
 
| DATE(7)
 
| not null
 
| not null
 
|  
 
|  
| promotion end day
+
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_TOTAL
 
| PROMO_TOTAL
 
| VARCHAR2(15)
 
| VARCHAR2(15)
Line 79: Line 87:
 
|  
 
|  
 
|  
 
|  
|- valign="top"
+
|
 +
|-
 
| PROMO_TOTAL_ID
 
| PROMO_TOTAL_ID
 
| NUMBER
 
| NUMBER
 
| not null
 
| not null
 +
|
 
|  
 
|  
 
|  
 
|  
 
|}
 
|}
  
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PROMO_PK
 
| PROMO_ID
 
|}
 
 
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
  
|- valign="top"
 
| SYS_C005152
 
| "PROMO_ID" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005153
 
| "PROMO_NAME" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005154
 
| "PROMO_SUBCATEGORY" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005155
 
| "PROMO_SUBCATEGORY_ID" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005156
 
| "PROMO_CATEGORY" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005157
 
| "PROMO_CATEGORY_ID" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005158
 
| "PROMO_COST" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005159
 
| "PROMO_BEGIN_DATE" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005160
 
| "PROMO_END_DATE" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005161
 
| "PROMO_TOTAL" IS NOT NULL
 
|
 
|- valign="top"
 
| SYS_C005162
 
| "PROMO_TOTAL_ID" IS NOT NULL
 
|
 
|}
 
  
=== Detail Tables ===
 
 
{| 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 156: Line 104:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
 
+
|- valign="top"
+
|-
 
| [[SH.COSTS_(table)|SH.COSTS]]
 
| [[SH.COSTS_(table)|SH.COSTS]]
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
|- valign="top"
+
|-
 
| [[SH.SALES_(table)|SH.SALES]]
 
| [[SH.SALES_(table)|SH.SALES]]
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
 
| PROMO_ID
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)