Difference between revisions of "OE.PRODUCT PRICES (view)"

From dbscript Online Help
Jump to: navigation, search
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"
 
| '''View
 
| '''View
 
| OE.PRODUCT_PRICES
 
| OE.PRODUCT_PRICES
|-
 
 
|}
 
|}
 
  
 
=== Source ===
 
=== Source ===
Line 27: Line 25:
 
| '''Referenced Object
 
| '''Referenced Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| Table
 
| Table

Revision as of 06:15, 24 June 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