SELECT A1.HRS_PERSON_ID , A1.HRS_RCMNT_ID , A.HRS_JOB_OPENING_ID , A.LANGUAGE_CD , CASE WHEN JL.HRS_PRM_PST_TITLE IS NULL THEN A.HRS_PRM_PST_TITLE ELSE JL.HRS_PRM_PST_TITLE END , COALESCE(( SELECT NML.NAME_DISPLAY FROM PS_HRS_PERSON_NM_L NML ,PS_HRS_JOB_OPENING JO WHERE NML.EMPLID = JO.MANAGER_ID AND NML.LANGUAGE_CD = A.LANGUAGE_CD AND JO.HRS_JOB_OPENING_ID = A.HRS_JOB_OPENING_ID),( SELECT NM.NAME_DISPLAY FROM PS_HRS_PERSON_NM_I NM ,PS_HRS_JOB_OPENING JO WHERE NM.EMPLID = JO.MANAGER_ID AND JO.HRS_JOB_OPENING_ID = A.HRS_JOB_OPENING_ID)) ,COALESCE(( SELECT NML.NAME_DISPLAY FROM PS_HRS_PERSON_NM_L NML ,PS_HRS_JOB_OPENING JO WHERE NML.EMPLID = JO.RECRUITER_ID AND NML.LANGUAGE_CD = A.LANGUAGE_CD AND JO.HRS_JOB_OPENING_ID = A.HRS_JOB_OPENING_ID),( SELECT NM.NAME_DISPLAY FROM PS_HRS_PERSON_NM_I NM ,PS_HRS_JOB_OPENING JO WHERE NM.EMPLID = JO.RECRUITER_ID AND JO.HRS_JOB_OPENING_ID = A.HRS_JOB_OPENING_ID)), CASE WHEN SL.DESCR IS NULL THEN B.DESCR ELSE SL.DESCR END , CASE WHEN BL.DESCR IS NULL THEN C.DESCR ELSE BL.DESCR END FROM PS_HRS_RCMN_IDX_VW A1 LEFT OUTER JOIN PS_HRS_ALL_JOBS_L1 A ON A1.HRS_JOB_OPENING_ID = A.HRS_JOB_OPENING_ID LEFT OUTER JOIN PS_HRS_JO_LNG JL ON (A.HRS_JOB_OPENING_ID = JL.HRS_JOB_OPENING_ID AND A.LANGUAGE_CD = JL.LANGUAGE_CD) LEFT OUTER JOIN PS_HRS_STS_JO_LVW SL ON (SL.STATUS_AREA = '1' AND A.STATUS_CODE = SL.STATUS_CODE AND A.LANGUAGE_CD = SL.LANGUAGE_CD) LEFT OUTER JOIN PS_HRS_B_UN_HR_LNI BL ON (A.BUSINESS_UNIT = BL.BUSINESS_UNIT) , PS_HRS_STS_JO_I B , PS_HRS_BS_UNT_HR_J C WHERE B.STATUS_AREA = '1' AND A.STATUS_CODE = B.STATUS_CODE AND A.BUSINESS_UNIT = C.BUSINESS_UNIT
|