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: Mark G <mgumbs_at_nospam.hotmail.com>
Date: Wed, 23 Jun 1999 09:08:15 +0100
Message-ID: <3770939c.0@145.227.194.253>


Y2K wrote in message <376fd27c.333723959_at_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.
>

A solution lies in something i wrote in an earlier thread...

'Combining all this, why don't you do your initial query, save it to a temp table in the order you want and then use the rownum method stated below based on the sorted temp table?'

Instead of a temp table, you can also consider a PL/SQL table. Received on Wed Jun 23 1999 - 03:08:15 CDT

Original text of this message

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