SELECT A.HRS_PERSON_ID , A.EMPLID , B.LANGUAGE_CD , B.NAME , C.NAME_DISPLAY FROM PS_HRS_EE_REFERRAL A , PS_HRS_APP_NAME_LN B , PS_HRS_PERSON_NM_L C WHERE A.EMPLID <> ' ' AND A.HRS_PERSON_ID = B.HRS_PERSON_ID AND A.EMPLID = C.EMPLID AND B.LANGUAGE_CD = C.LANGUAGE_CD UNION SELECT A.HRS_PERSON_ID , A.EMPLID , B.LANGUAGE_CD , B.NAME , C.NAME_DISPLAY FROM PS_HRS_EE_REFERRAL A , PS_HRS_APP_NAME_LN B , PS_HRS_PERSON_NM_I C WHERE A.EMPLID <> ' ' AND A.HRS_PERSON_ID = B.HRS_PERSON_ID AND A.EMPLID = C.EMPLID AND NOT EXISTS ( SELECT 'X' FROM PS_HRS_PERSON_NM_L C1 WHERE C1.EMPLID = C.EMPLID AND C1.LANGUAGE_CD = B.LANGUAGE_CD) UNION SELECT A.HRS_PERSON_ID , A.EMPLID , C.LANGUAGE_CD , B.NAME , C.NAME_DISPLAY FROM PS_HRS_EE_REFERRAL A , PS_HRS_APP_NAME_I B , PS_HRS_PERSON_NM_L C WHERE A.EMPLID <> ' ' AND A.HRS_PERSON_ID = B.HRS_PERSON_ID AND A.EMPLID = C.EMPLID AND NOT EXISTS ( SELECT 'X' FROM PS_HRS_APP_NAME_LN B1 WHERE B1.HRS_PERSON_ID = B.HRS_PERSON_ID AND B1.LANGUAGE_CD = C.LANGUAGE_CD)
|