Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> AW: Oracle select data problem...
Hi Willie,
Maybe your dateformat isn't correct. You should check the NLS Parameters.
regards
Volker Schoen
E-Mail: mailto:v.schoen_at_inplan.de
http://www.inplan.de
-----Ursprüngliche Nachricht-----
Von: Townsend Willie [mailto:Willie.Townsend_at_ssfhs.org]
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: Willie.Townsend_at_ssfhs.org
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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). Received on Mon Jan 21 2002 - 11:03:28 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message