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 ranges of rows

Select ranges of rows

From: Kalamaro <diegoman_at_usuarios.retecal.es>
Date: Mon, 25 Feb 2002 00:13:07 +0100
Message-ID: <a5bs3b$67a5g$1@ID-115330.news.dfncis.de>


Hi. I have a problem selecting a range of rows. What i want is to get the rows from X to Y in a specific order. I've found that:

 SELECT *

        FROM   tableX
        WHERE  rowid in (
           SELECT rowid FROM tableX
           WHERE rownum <= 7
          MINUS
           SELECT rowid FROM tableX
           WHERE rownum < 5);

It works, but it's hard to apply it to my query. Is there another way to do the same (with views or something else)?

thanks Received on Sun Feb 24 2002 - 17:13:07 CST

Original text of this message

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