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!

how to query top 100 ?

oaisMar 10 2009 — edited Mar 10 2009
Hi , I have this code :
select     i.INVESTOR_CODE , 
i.investor_name , 
sum(invoice_commission) as commission ,
sum(INVOICE_SUBTOTAL) as total   <<<<
from investor i , invoice inv
where INVOICE_DATE  between  '01-JAN-08' and '31-DEC-08'
and i.INVESTOR_CODE = inv.INVESTOR_CODE
group by i.INVESTOR_CODE , i.investor_name
order by total;
Can someone PLEASE re-write this query so it can get the top 100 investor with the highest "total"

Thanks....
This post has been answered by Kamran Agayev A. on Mar 10 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2009
Added on Mar 10 2009
5 comments
290 views