Difference between revisions of "OE.INVENTORIES (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| OE.INVENTORIES
 
| OE.INVENTORIES
 +
|- valign="top"
 +
| '''Description
 +
| Tracks availability of products by product_it and warehouse_id.
 
|-
 
|-
 
|}
 
|}
  
  
 +
=== 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 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
 
 
 
 
|-
 
|-
Line 23: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| INVENTORY_IX
+
| Part of concatenated primary key, references product_information.product_id.
| INV_PRODUCT_IX
 
 
|-
 
|-
 
| WAREHOUSE_ID
 
| WAREHOUSE_ID
Line 30: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| INVENTORY_IX
+
| Part of concatenated primary key, references warehouses.warehouse_id.
|
 
 
|-
 
|-
 
| QUANTITY_ON_HAND
 
| QUANTITY_ON_HAND
Line 38: Line 39:
 
|  
 
|  
 
|  
 
|  
 +
|}
 +
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| INVENTORY_IX
 +
| WAREHOUSE_ID, PRODUCT_ID
 +
|}
 +
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| INV_PRODUCT_IX
 
|  
 
|  
 +
| PRODUCT_ID
 
|}
 
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
 +
 +
|-
 +
| INVENTORY_QOH_NN
 +
| "QUANTITY_ON_HAND" IS NOT NULL
 +
|
 +
|-
 +
| INVENTORY_WAREHOUSE_ID_NN
 +
| "WAREHOUSE_ID" 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 57: Line 96:
 
| WAREHOUSE_ID
 
| WAREHOUSE_ID
 
| WAREHOUSE_ID
 
| WAREHOUSE_ID
 +
|}
 +
 +
=== Dependencies ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.BOMBAY_INVENTORY_(view)|OE.BOMBAY_INVENTORY]]
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.OC_INVENTORIES_(view)|OE.OC_INVENTORIES]]
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.SYDNEY_INVENTORY_(view)|OE.SYDNEY_INVENTORY]]
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.TORONTO_INVENTORY_(view)|OE.TORONTO_INVENTORY]]
 +
 
|}
 
|}

Revision as of 08:28, 11 February 2010

wikibot

Table OE.INVENTORIES
Description Tracks availability of products by product_it and warehouse_id.


Columns

Column Data Type Nullable Default Description
PRODUCT_ID NUMBER(6, 0) not null Part of concatenated primary key, references product_information.product_id.
WAREHOUSE_ID NUMBER(3, 0) not null Part of concatenated primary key, references warehouses.warehouse_id.
QUANTITY_ON_HAND NUMBER(8, 0) not null

Primary Key

Primary Key Columns
INVENTORY_IX WAREHOUSE_ID, PRODUCT_ID

Indexes

Index Type Columns
INV_PRODUCT_IX PRODUCT_ID

Check Constraints

Check Constraint Expression Description
INVENTORY_QOH_NN "QUANTITY_ON_HAND" IS NOT NULL
INVENTORY_WAREHOUSE_ID_NN "WAREHOUSE_ID" IS NOT NULL

Foreign Keys

Relation Column Referenced Column
OE.PRODUCT_INFORMATION PRODUCT_ID PRODUCT_ID
OE.WAREHOUSES WAREHOUSE_ID WAREHOUSE_ID

Dependencies

Reference Type Object Type Referencing Object
Select View OE.BOMBAY_INVENTORY
Select View OE.OC_INVENTORIES
Select View OE.SYDNEY_INVENTORY
Select View OE.TORONTO_INVENTORY