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 -> How to select rows in a given range?

How to select rows in a given range?

From: Emre Akbag <akbag_at_scr.siemens.com>
Date: Thu, 28 Sep 2000 15:37:47 -0400
Message-ID: <D3NA5.5664$l35.134624@iad-read.news.verio.net>

How can I select rows from a table in a given range?

I can restrict maximum number of rows fetched using "rownum", like :

select * from tableA where rownum < 100;

But, as documented in Tech.net too, "rownum" doesn't work with "between" or
">" operators.

That's why, following queries DON'T work:

select * from tableA where rownum > 100 ; OR
select * from tableA where rownum BETWEEN 100 AND 150;

How can I realise this? I'd appreciate any ideas.

--
Thanks in advance

Emre AKBAG

akbag_at_scr.siemens.com
Siemens Corporate Research
Received on Thu Sep 28 2000 - 14:37:47 CDT

Original text of this message

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