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

Home -> Community -> Usenet -> c.d.o.tools -> Re: First 20 records only

Re: First 20 records only

From: Anthony Hogan <cidertree_at_netscape.net>
Date: Fri, 08 Jun 2001 12:54:35 +0100
Message-ID: <3B20BCFA.597071B1@netscape.net>

select * from tableA
where ROWNUM <21;

Anthony

Jack wrote:

> Hi
> Can you please tell me how to 'select' only (the first) 20 records of a
> table?
> is it ;
> select * from tableA sample (20)
>
> Thanks
Received on Fri Jun 08 2001 - 06:54:35 CDT

Original text of this message

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