SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.NAME_DISPLAY FROM PS_HR_DIRECT_REP_2 A , PS_PERSON_NAME B WHERE B.EMPLID = A.SUPERVISOR_ID AND 2 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_OBD_STATUS_FL') AND DRILL_DOWN_FLAG = 'Y' UNION SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.NAME_DISPLAY FROM PS_HR_DIRECT_REP_3 A , PS_PERSON_NAME B WHERE B.EMPLID = A.SUPERVISOR_ID AND 3 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_OBD_STATUS_FL') AND DRILL_DOWN_FLAG = 'Y' UNION SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.NAME_DISPLAY FROM PS_HR_DIRECT_REP_4 A, PS_PERSON_NAME B WHERE B.EMPLID = A.SUPERVISOR_ID AND 4 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_OBD_STATUS_FL') AND DRILL_DOWN_FLAG = 'Y' UNION SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.NAME_DISPLAY FROM PS_HR_DIRECT_REP_5 A , PS_PERSON_NAME B WHERE B.EMPLID = A.SUPERVISOR_ID AND 5 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_OBD_STATUS_FL') AND DRILL_DOWN_FLAG = 'Y' UNION SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.NAME_DISPLAY FROM PS_HR_DIRECT_REP_6 A, PS_PERSON_NAME B WHERE B.EMPLID = A.SUPERVISOR_ID AND 6 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_OBD_STATUS_FL') AND DRILL_DOWN_FLAG = 'Y'
|