Editing SH.SALES (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.SALES
 
| SH.SALES
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| facts table, without a primary key; all rows are uniquely identified by the combination of all foreign keys
 
| facts table, without a primary key; all rows are uniquely identified by the combination of all foreign keys
 +
|-
 
|}
 
|}
 +
  
 
=== Columns ===
 
=== Columns ===
Line 18: Line 20:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
 
+
|- valign="top"
+
|-
 
| PROD_ID
 
| PROD_ID
 
| NUMBER
 
| NUMBER
Line 25: Line 27:
 
|  
 
|  
 
| FK to the products dimension table
 
| FK to the products dimension table
|- valign="top"
+
|-
 
| CUST_ID
 
| CUST_ID
 
| NUMBER
 
| NUMBER
Line 31: Line 33:
 
|  
 
|  
 
| FK to the customers dimension table
 
| FK to the customers dimension table
|- valign="top"
+
|-
 
| TIME_ID
 
| TIME_ID
 
| DATE(7)
 
| DATE(7)
Line 37: Line 39:
 
|  
 
|  
 
| FK to the times dimension table
 
| FK to the times dimension table
|- valign="top"
+
|-
 
| CHANNEL_ID
 
| CHANNEL_ID
 
| NUMBER
 
| NUMBER
Line 43: Line 45:
 
|  
 
|  
 
| FK to the channels dimension table
 
| FK to the channels dimension table
|- valign="top"
+
|-
 
| PROMO_ID
 
| PROMO_ID
 
| NUMBER
 
| NUMBER
Line 49: Line 51:
 
|  
 
|  
 
| promotion identifier, without FK constraint (intentionally) to show outer join optimization
 
| promotion identifier, without FK constraint (intentionally) to show outer join optimization
|- valign="top"
+
|-
 
| QUANTITY_SOLD
 
| QUANTITY_SOLD
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 55: Line 57:
 
|  
 
|  
 
| product quantity sold with the transaction
 
| product quantity sold with the transaction
|- valign="top"
+
|-
 
| AMOUNT_SOLD
 
| AMOUNT_SOLD
 
| NUMBER(10, 2)
 
| NUMBER(10, 2)
Line 69: Line 71:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
 
+
|- valign="top"
+
|-
 +
| SALES_CUST_BIX
 +
|
 +
| CUST_ID
 +
|-
 
| SALES_CHANNEL_BIX
 
| SALES_CHANNEL_BIX
 
|  
 
|  
 
| CHANNEL_ID
 
| CHANNEL_ID
|- valign="top"
+
|-
| SALES_CUST_BIX
+
| SALES_TIME_BIX
 
|  
 
|  
| CUST_ID
+
| TIME_ID
|- valign="top"
+
|-
 
| SALES_PROD_BIX
 
| SALES_PROD_BIX
 
|  
 
|  
 
| PROD_ID
 
| PROD_ID
|- valign="top"
+
|-
 
| SALES_PROMO_BIX
 
| SALES_PROMO_BIX
 
|  
 
|  
 
| PROMO_ID
 
| PROMO_ID
|- valign="top"
 
| SALES_TIME_BIX
 
|
 
| TIME_ID
 
 
|}
 
|}
  
Line 98: Line 100:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
 
+
|- valign="top"
+
|-
 
| SYS_C005075
 
| SYS_C005075
 
| "PROD_ID" IS NOT NULL
 
| "PROD_ID" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005076
 
| SYS_C005076
 
| "CUST_ID" IS NOT NULL
 
| "CUST_ID" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005077
 
| SYS_C005077
 
| "TIME_ID" IS NOT NULL
 
| "TIME_ID" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005078
 
| SYS_C005078
 
| "CHANNEL_ID" IS NOT NULL
 
| "CHANNEL_ID" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005079
 
| SYS_C005079
 
| "PROMO_ID" IS NOT NULL
 
| "PROMO_ID" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005080
 
| SYS_C005080
 
| "QUANTITY_SOLD" IS NOT NULL
 
| "QUANTITY_SOLD" IS NOT NULL
 
|  
 
|  
|- valign="top"
+
|-
 
| SYS_C005081
 
| SYS_C005081
 
| "AMOUNT_SOLD" IS NOT NULL
 
| "AMOUNT_SOLD" IS NOT NULL
Line 135: Line 137:
 
| '''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.CUSTOMERS_(table)|SH.CUSTOMERS]]
 
| [[SH.CUSTOMERS_(table)|SH.CUSTOMERS]]
 
| CUST_ID
 
| CUST_ID
 
| CUST_ID
 
| CUST_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
 
|}
 
|}

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)