Only less < and <= queries with regards to rownum are supported.

RF 

-----Original Message-----
To: Multiple recipients of list ORACLE-L
Sent: 7/9/2003 11:19 AM

I definitely dont fully understand ROWNUM yet, 
and you guys so far provided more info than a couple of books
by Oracle, that I have here. For a second I thought I'm 
beginning to get it, but the queries suggested produced no results...


SQL> SELECT ROWNUM, GENDER
  2  FROM   (SELECT ROWNUM, GENDER
  3          FROM   EMP2
  4          WHERE  ROWNUM <= 20)
  5  WHERE   ROWNUM > 10; 

no rows selected

SQL> SELECT r, GENDER
  2  FROM   (SELECT ROWNUM r, GENDER
  3          FROM   EMP2
  4          WHERE  ROWNUM <= 20)
  5  WHERE   ROWNUM > 10;    

no rows selected

SQL> SELECT r "ROWNUM", GENDER
  2  FROM   (SELECT ROWNUM r, GENDER
  3          FROM   EMP2
  4          WHERE  ROWNUM <= 20)
  5  WHERE   ROWNUM > 10;   

no rows selected

SQL> 



.. so, any help is appreciated - rownum is driving me nuts...


thx
maa

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: MaryAnn Atkinson
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Freeman Robert - IL
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to