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

From dbscript Online Help
Jump to: navigation, search
Line 10: Line 10:
  
 
<pre>
 
<pre>
CREATE OR REPLACE SELECT category_id
+
CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS
 +
SELECT category_id
 
,      COUNT(*)        as "#_OF_PRODUCTS"
 
,      COUNT(*)        as "#_OF_PRODUCTS"
 
,      MIN(list_price) as low_price
 
,      MIN(list_price) as low_price

Revision as of 21:10, 24 August 2009

wikibot

view OE.PRODUCT_PRICES


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