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 -> Re: Need some help with ROWNUM

Re: Need some help with ROWNUM

From: Steve Blomeley <steveblomeleyATyahoo.co.uk>
Date: Mon, 5 Feb 2001 17:16:44 -0000
Message-ID: <t7to4v6mlocv5a@corp.supernews.co.uk>

Gad,

How about ...

SELECT * FROM
(

   SELECT columns
   FROM tables
   WHERE join conditions, including outer join    ORDER BY some columns
)
WHERE ROWNUM < 1026
#
MINUS
#
SELECT * FROM
(

   SELECT columns
   FROM tables
   WHERE join conditions, including outer join    ORDER BY some columns
)
WHERE ROWNUM < 1001

hth
Steve Blomeley Received on Mon Feb 05 2001 - 11:16:44 CST

Original text of this message

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