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: HELP: SELECT TOP 10

Re: HELP: SELECT TOP 10

From: D. Buecherl <dbuecherl_at_nkk.net>
Date: Mon, 19 Apr 1999 10:19:20 +0100
Message-ID: <371AF518.D259F19F@nkk.net>


Try something like:

select * from person p1
where 10 < (select count(*) from
person p2 where p2.name > p1.name)
order by p1.name;

Dieter

Harald Mika schrieb:

> Two very urgent questions:
>
> 1. Is there a way to perform a query like
> SELECT TOP 10 NAME ..... FROM PERSONS ORDER BY NAME
> which will generate only the first 10 records. There is something like
> this in MS Access. I'm sorry to mention this!
Received on Mon Apr 19 1999 - 04:19:20 CDT

Original text of this message

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