Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: analytic functions vs subquery
On Fri, 25 Feb 2005 13:50:50 +0100, Cris Carampa wrote:
> GreyBeard wrote:
>
>> One question for clarification: is there only one possible 'NUM' value >> for each 'ID' value?
Then I'd suggest you use an inline view ....
SELECT sum(num)
FROM ( SELECT DISTINCT id, num
FROM thetab)
;
If this is foreign to you, please consider investing in the book "Mastering Oracle SQL" (http://www.oreilly.com/catalog/0596006322/) as you are missing a whole swack of capabilities in Oracle (and other real RDBMSs).
FGB Received on Fri Feb 25 2005 - 10:52:41 CST
![]() |
![]() |