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 -> Top Value

Top Value

From: Mark Gumbs <mgumbs_at_nospam.hotmail.com>
Date: Wed, 2 Jun 1999 13:24:46 +0100
Message-ID: <3755204d.0@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 Wed Jun 02 1999 - 07:24:46 CDT

Original text of this message

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