SELECT A.HRS_AL_LOG_ID , A.HRS_AL_LOG_SRC_SEQ , D.LANGUAGE_CD , D.HRS_SOURCE_NAME , D.HRS_SOURCE_DESCR , C.HRS_SUBSOURCE_DESC , SUB.HRS_SUBSOURCE_DESC FROM PS_HRS_AL_LOG_SRCE A , PS_HRS_SOURCE B , PS_HRS_SOURCE_LNG D , PS_HRS_SUBSRCE_LNG C LEFT OUTER JOIN PS_HRS_SUBSRC_LN_I SUB ON SUB.HRS_SOURCE_ID=C.HRS_SOURCE_ID AND SUB.HRS_SUBSOURCE_ID=C.HRS_SUBSOURCE_ID AND SUB.LANGUAGE_CD=C.LANGUAGE_CD WHERE A.HRS_SOURCE_ID=B.HRS_SOURCE_ID AND D.LANGUAGE_CD=C.LANGUAGE_CD AND A.HRS_SOURCE_ID=D.HRS_SOURCE_ID AND ((B.HRS_SOURCE_ID=C.HRS_SOURCE_ID AND A.HRS_SUBSOURCE_ID=C.HRS_SUBSOURCE_ID AND B.EFFDT=C.EFFDT ) OR (A.HRS_SUBSOURCE_ID=0 AND C.HRS_SOURCE_ID=0)) AND %DatePart(A.HRS_ROW_UPD_DTTM) BETWEEN B.EFFDT AND B.HRS_END_EFFDT
|