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

From dbscript Online Help
Jump to: navigation, search
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''view | OE.SYDNEY_INVENTORY |- |} <pre> </pre>)
 
Line 7: Line 7:
 
|-
 
|-
 
|}
 
|}
 +
  
 
<pre>
 
<pre>
 
+
CREATE OR REPLACE 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 = 'Sydney'
 
</pre>
 
</pre>

Revision as of 20:02, 24 August 2009

wikibot

view OE.SYDNEY_INVENTORY


CREATE OR REPLACE 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 = 'Sydney'