SELECT DISTINCT OFR.HRS_OFF_ID , OFR.HRS_PERSON_ID , OFR.HRS_RCMNT_ID , COALESCE(ANM.LANGUAGE_CD ,Z.LANGUAGE_CD ,H.LANGUAGE_CD) , H.NAME_DISPLAY , Z.NAME_DISPLAY , ANM.NAME_DISPLAY FROM PS_HRS_OFFER_VW OFR LEFT OUTER JOIN PS_HRS_PERSON_NM_L Z ON Z.EMPLID = OFR.RECRUITER_ID LEFT OUTER JOIN PS_HRS_PERSON_NM_L H ON H.EMPLID = OFR.HRS_HIRING_MGR_ID LEFT OUTER JOIN PS_HRS_APP_NM_LNG ANM ON OFR.HRS_PERSON_ID = ANM.HRS_PERSON_ID WHERE ANM.NAME_TYPE = 'PRI' AND ( ((ANM.LANGUAGE_CD = Z.LANGUAGE_CD) AND (Z.LANGUAGE_CD = H.LANGUAGE_CD)) OR ((ANM.LANGUAGE_CD = Z.LANGUAGE_CD) AND H.LANGUAGE_CD IS NULL) OR ((ANM.LANGUAGE_CD = H.LANGUAGE_CD) AND Z.LANGUAGE_CD IS NULL) OR ((Z.LANGUAGE_CD = H.LANGUAGE_CD) AND ANM.LANGUAGE_CD IS NULL) )
|