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: Q: returning rows between two positions in a large query

Re: Q: returning rows between two positions in a large query

From: Y2K <y2000_at_pacbell.net>
Date: 22 Jun 1999 11:12:58 PDT
Message-ID: <376fd27c.333723959@news.concentric.net>


Thanks for the reponse! But how do I handle the order by clause? My select will be sorted according to user input (ie dynamically), and it has to be sorted first, and then select rows from 150 to 199 etc.

TIA! On Tue, 22 Jun 1999 13:45:04 GMT, shiling_at_math.wayne.edu wrote:

>The following example selects records between #3-#4.
>
>SQL> select * from t
> 2 ;
>
>TDATE
>---------
>09-JAN-99
>09-JAN-98
>09-JAN-97
>09-JAN-96
>09-JAN-95
>09-JAN-94
>
>6 rows selected.
>
>SQL> select * from t where rownum<=4
> 2 minus
> 3 select * from t where rownum<=2;
>
>TDATE
>---------
>09-JAN-96
>09-JAN-97
>
>SQL>
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
Received on Tue Jun 22 1999 - 13:12:58 CDT

Original text of this message

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