Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Oracle select data problem...

Oracle select data problem...

From: Townsend Willie <Willie.Townsend_at_ssfhs.org>
Date: Mon, 21 Jan 2002 07:36:41 -0800
Message-ID: <F001.003F5CFE.20020121071524@fatcity.com>

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 Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: 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 - 09:36:41 CST

Original text of this message

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