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

From dbscript Online Help
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
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 ===
 
<pre>
 
<pre>
 
CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS  
 
CREATE OR REPLACE VIEW OE.PRODUCT_PRICES AS  

Latest revision as of 10:35, 27 August 2011

wikibot[edit]

View OE.PRODUCT_PRICES

Source[edit]

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