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 -> Select a range of stuff?

Select a range of stuff?

From: D. Alvarado <laredotornado_at_zipmail.com>
Date: 15 Mar 2002 11:20:50 -0800
Message-ID: <9fe1f2ad.0203151120.127f3875@posting.google.com>


Hi,

   I have the following query:

SELECT SUM(NUMERIC_COL) TOTAL FROM TABLE ORDER BY TOTAL DESC but I only want to extract a range of results (for example, the 1st through 10th rows the cursor returns, or the 31st through 40th). My initial thought was just to write a stored procedure and iterate through the cursor until I find the right range, but this seemed a little inefficient to me. Is there some way I can modify the above query so that the cursor will begin and end at a specified range?

Thanks in advance, Dave A. Received on Fri Mar 15 2002 - 13:20:50 CST

Original text of this message

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