Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SUM function

SUM function

From: vegas_girlie <minnie_valerie_at_hotmail.com>
Date: 19 May 2005 20:21:59 -0700
Message-ID: <1116559319.566225.215840@f14g2000cwb.googlegroups.com>


hi-
i have a query that i need help on. basically i need to choose all the customer keys that have the sum of the sales amt * qty > 100000. i get an error message saying that i canno?t have the sum in the group function. is the below the correct syntax?

select a.KEY
from table.A
where sum(SALES_AMT*QtY)>100000
group by a.key

thanks! Received on Thu May 19 2005 - 22:21:59 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US