Difference between revisions of "OE.PRODUCT PRICES (view)"
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 20: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