Difference between revisions of "OE.PRODUCT PRICES (view)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''view | OE.PRODUCT_PRICES |- |} <pre> </pre>) |
|||
Line 7: | Line 7: | ||
|- | |- | ||
|} | |} | ||
+ | |||
<pre> | <pre> | ||
− | + | CREATE OR REPLACE 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 | ||
</pre> | </pre> |
Revision as of 20:02, 24 August 2009
wikibot
view | OE.PRODUCT_PRICES |
CREATE OR REPLACE 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