Hi Willie, Maybe your dateformat isn't correct. You should check the NLS Parameters.
regards Volker Schoen E-Mail: mailto:[EMAIL PROTECTED] http://www.inplan.de -----Ursprüngliche Nachricht----- Von: Townsend Willie [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 21. Januar 2002 16:15 An: Multiple recipients of list ORACLE-L Betreff: Oracle select data problem... Oracle Gurus, I have a perplexing problem....I recently installed Oracle 8.1.7.0 (64 bit) on an HP 11.X (64 bit) machine running a HRMS/PAyroll type application. I am having a problem with the below sql statement not returning any rows. When I look at the data, a row should be returned. Any ideas or solutions to this problem? Also, when I execute the subselect as a standalone SQL, a row of data is returned. SELECT SETID, EFFDT FROM PSTREEDEFN D WHERE D.EFF_STATUS = 'A' AND D.TREE_NAME = 'DEPT_SECURITY' AND D.EFFDT = (SELECT MAX(D1.EFFDT) FROM PSTREEDEFN D1 WHERE D1.SETID = D.SETID AND D1.TREE_NAME = D.TREE_NAME AND D1.EFFDT <= '01-JAN-2002'); Willie -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Townsend Willie INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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.com -- Author: Schoen Volker INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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).