Difference between revisions of "OE.PRODUCT PRICES (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.PRODUCT_PRICES
 
| OE.PRODUCT_PRICES
 
|-
 
|-
Line 9: Line 9:
  
  
 +
=== Source ===
 
<pre>
 
<pre>
 
CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS  
 
CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS  
Line 18: Line 19:
 
GROUP BY category_id
 
GROUP BY category_id
 
</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.PRODUCT_INFORMATION_(table)|OE.PRODUCT_INFORMATION]]
 +
 +
|}

Revision as of 08:28, 11 February 2010

wikibot

View OE.PRODUCT_PRICES


Source

CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS 
SELECT category_id
,      COUNT(*)        as "#_OF_PRODUCTS"
,      MIN(list_price) as low_price
,      MAX(list_price) as high_price
FROM   product_information
GROUP BY category_id

References

Dependency Type Object Type Referenced Object
Select Table OE.PRODUCT_INFORMATION