Brian and all, thanks for the help, here is the sql that does what I wanted to do!  
This gives me all the leave types in table 'a' and either a sum or null for values 
from table 'b'.  Thanks again!

SELECT
a.LEAVE_CATEG_ID,
a.LEAVE_TYPE_CD,
a.LPET_LONG_DD, 
Sum(l.ORIGINAL_INPUT_AM)
 FROM EFF_LEVPOL_EVNT_TYPE_TBL a, LEAVE_DETL_TBL l
WHERE a.LEAVE_TYPE_CD = l.evnt_type_cd(+) 
AND l.INTERNAL_EMPL_ID(+)='0000000357'
AND l.EFFECTIVE_DT(+) Between TO_DATE('01/01/2001','MM/DD/YYYY') 
And TO_DATE('12/31/2001','MM/DD/YYYY')
GROUP BY a.LEAVE_CATEG_ID, a.LEAVE_TYPE_CD, a.LPET_LONG_DD


---------- Original Message ----------------------------------
Reply-To: [EMAIL PROTECTED]
Date: Wed, 12 Dec 2001 10:15:33 -0800

>SELECT a.LEAVE_CATEG_ID,
>        a.LEAVE_TYPE_CD,
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Johnston, Steve
  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).

Reply via email to