Difference between revisions of "OE.TORONTO INVENTORY (view)"

From dbscript Online Help
Jump to: navigation, search
Line 3: Line 3:
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|-
 
|-
| '''view
+
| '''View
 
| OE.TORONTO_INVENTORY
 
| OE.TORONTO_INVENTORY
 
|-
 
|-
Line 9: Line 9:
  
  
 +
=== Source ===
 
<pre>
 
<pre>
 
CREATE OR REPLACE VIEW OE.TORONTO_INVENTORY AS  
 
CREATE OR REPLACE VIEW OE.TORONTO_INVENTORY AS  
Line 21: Line 22:
 
AND    w.warehouse_name = 'Toronto'
 
AND    w.warehouse_name = 'Toronto'
 
</pre>
 
</pre>
 +
 +
=== References ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Select
 +
| Table
 +
| [[OE.INVENTORIES_(table)|OE.INVENTORIES]]
 +
 +
|}

Revision as of 08:28, 11 February 2010

wikibot

View OE.TORONTO_INVENTORY


Source

CREATE OR REPLACE VIEW OE.TORONTO_INVENTORY AS 
SELECT p.product_id
,      p.product_name
,      i.quantity_on_hand
FROM   inventories i
,      warehouses  w
,      products    p
WHERE  p.product_id = i.product_id
AND    i.warehouse_id = w.warehouse_id
AND    w.warehouse_name = 'Toronto'

References

Dependency Type Object Type Referenced Object
Select Table OE.INVENTORIES