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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Top Value

Re: Top Value

From: Alexander I. Doroshko <aid_at_grant.kharkov.ua>
Date: 3 Jun 1999 08:50:50 GMT
Message-ID: <01bead9d$9d0b8080$190114c1@sister.grant.UUCP>


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)
;
--
 Alexander I.Doroshko, aid_at_grant.kharkov.ua Received on Thu Jun 03 1999 - 03:50:50 CDT

Original text of this message

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