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: Mark Gumbs <mgumbs_at_nospam.hotmail.com>
Date: Thu, 3 Jun 1999 12:26:31 +0100
Message-ID: <3756641e.0@145.227.194.253>


Thanks for your opinions,

The method Alexander gave worked ok. If the sze of the table gets very big in future, I may go for the cursor method.

Cheers

M

Mark Gumbs wrote in message <3755204d.0_at_145.227.194.253>...
>Hi,
>
>I have a statement
>
>SQL> select bill_seq_no, count(mobile_num)
> 2 from invoice
> 3 group by bill_seq_no;
>
>BILL_SEQ_N COUNT(MOBILE_NUM)
>---------- -----------------
>MD0 14
>MD1 5
>MD2 1
>
>How can i rewrite the statement so it only returns the 1st line (MD0, 14)?
>Rownum won't help.
>
>M
>
>
Received on Thu Jun 03 1999 - 06:26:31 CDT

Original text of this message

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