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

Home -> Community -> Usenet -> c.d.o.server -> Re: select subset???

Re: select subset???

From: David Fitzjarrell <oratune_at_aol.com>
Date: Wed, 08 Nov 2000 23:01:39 GMT
Message-ID: <8ucm0e$fvg$1@nnrp1.deja.com>

In our last gripping episode lfto_at_my-deja.com wrote:
> if i have 100 userids in the database....i don't have any idea what
> they're values are.....could be 1-100 or 100,984,1001,etc...
>
> how can i select the first 10 userids????
>
> thanks
> mike
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

select user_id
from dba_users
where rownum < 11;

This will return the first 10 rows retrieved from the table.

--
David Fitzjarrell
Oracle Certified DBA


Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Nov 08 2000 - 17:01:39 CST

Original text of this message

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