SELECT RCMNT.HRS_PERSON_ID , ANAME.NAME , RCMNT.STATUS_CODE , RCMNT.HRS_ROW_UPD_DTTM FROM PS_HRS_RCMNT RCMNT , PS_HRS_APP_NAMES ANAME WHERE RCMNT.HRS_PERSON_ID = ANAME.HRS_PERSON_ID AND EXISTS ( SELECT 'X' FROM PS_HRS_RCMNT RCMNT2 WHERE RCMNT2.HRS_PERSON_ID = RCMNT.HRS_PERSON_ID AND RCMNT2.HRS_PROFILE_SEQ = RCMNT.HRS_PROFILE_SEQ) AND EXISTS ( SELECT 'X' FROM PS_HRS_APP_PROFILE PROF WHERE PROF.HRS_PERSON_ID = RCMNT.HRS_PERSON_ID AND PROF.HRS_PROFILE_SEQ = RCMNT.HRS_PROFILE_SEQ) AND RCMNT.status_code NOT IN ('110','005')
|