SELECT ROWNUM , pax.supervisor_id , pax.person_id , ppx.employee_number , mgx.employee_number supervisor_staff_number , REPLACE (ppx.full_name, '''', ' ') full_name , REPLACE (mgx.full_name, '''', ' ') supervisor_full_name , pj.NAME job_name , pj.attribute5 cbs_role FROM per_assignments_x pax , per_people_x ppx , per_people_x mgx , per_jobs pj WHERE ppx.person_id = pax.person_id AND ppx.current_employee_flag = 'Y' AND mgx.person_id = pax.supervisor_id AND pj.job_id = pax.job_id START WITH ppx.employee_number = '<emp_num>' CONNECT BY NOCYCLE PRIOR mgx.employee_number = ppx.employee_number