THATS THE ONE!!! THAT DID IT!!! --- Freeman Robert - IL <[EMAIL PROTECTED]> wrote: > To add on to my previous comments, change your code a bit: > SQL> SELECT RN, GENDER > 2 FROM (SELECT ROWNUM RN, GENDER > 3 FROM EMP2 > 4 WHERE ROWNUM <= 20) > 5 WHERE RN > 10;
The last WHERE is testing on RN, not ROWNUM. Thats the trick right there! If its true that we can only test < and <= for ROWNUM, and that sure appears to be the case, then we cannot have ROWNUM on the last WHERE clause on line 5, but its alias is fine. Robert Freeman? I had a professor Robert Freeman, he taught Comp Engr at UMC... Many thanks, 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).
