Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Top Value
IMHO, if there is no need in solving the task with a
single query and one can use PL/SQL, cursor is a best way.
If no, the quickest and dirtiest is
select bill_seq_no, count(mobile_num)
from invoice
group by bill_seq_no
having count(*)=(select max(count(*)) from invoice
group by bill_seq_no);
![]() |
![]() |