Query #1:
SELECT EMP_LASTNAME,
WORK_DATE,
ASSIGNMENT,
SD.EMP_ID
FROM EMPLOYEE E,
TIME_CODE T,
EMPLOYEE_SCHED_DTL SD
LEFT OUTER JOIN VUMC_ASSIGNMENT ASN ON (ASN_DATE = ESCHD_WORK_DATE OR
ASN.Eschd_Id = SD.Eschd_Id)
AND SD.EMP_ID = ASN.EMP_ID
AND ASN.ASN_VAL1 = 'VALID'
WHERE
ESCHD_WORK_DATE = '4-Jul-2010' AND
e.emp_id = 16472
AND E.EMP_ID = SD.EMP_ID
AND T.TCODE_ID = SD.TCODE_ID
Query #2:
select ss.* from
sched_shift ss, shift_req sr, sched_process pr
where
ss.rtssrq_id = sr.rtssrq_id and
pr.rtssp_id = sr.rtssp_id and
pr.rtssp_flag1 is not null
and sr.rtssrq_date_req = '4-Jul-2010' --
|