Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sum and top ten records

165379Jun 22 2003 — edited Jun 23 2003
I can get the top ten records with this command.

select amt,rank() over (order by qater desc) as qtr
from table1 where rownum<=10;


Now I want to get the sum(amt) in similar query and it is giving problem. How can I do it?

Thank You.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2003
Added on Jun 22 2003
1 comment
232 views