HR_GSS_PG_DIR_V

(SQL View)
Index Back

GSS PG Direct Reports View

Used in Document status pivot chart published in Manager Dash Board as a pagelet. View selects the direct reports for a particular access type configured for HR_MSS_CT_FL component.

SELECT DIR.SUPERVISOR_ID ,0 ,DIR.EMPLID ,DIR.EMPL_RCD ,DIR.HR_DR_LEVEL ,DIR.EMPL_STATUS ,DIR.JOB_EFFDT ,DIR.POSITION_NBR ,' ' ,DIR.SUPERVISOR_FLAG ,DIR.DRILL_DOWN_FLAG ,'2' ,' ' ,' ' FROM PS_HR_DIRECT_REP_2 DIR WHERE 2 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_MSS_CT_FL') AND HR_DR_LEVEL = 1 AND DRILL_DOWN_FLAG = 'Y' UNION ALL SELECT DIR.SUPERVISOR_ID ,0 ,DIR.EMPLID ,DIR.EMPL_RCD ,DIR.HR_DR_LEVEL ,DIR.EMPL_STATUS ,DIR.JOB_EFFDT ,DIR.POSITION_NBR ,' ' ,DIR.SUPERVISOR_FLAG ,DIR.DRILL_DOWN_FLAG ,'3' ,DIR.SETID_DEPT ,DIR.DEPTID FROM PS_HR_DIRECT_REP_3 DIR WHERE 3 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_MSS_CT_FL') AND HR_DR_LEVEL = 1 AND DRILL_DOWN_FLAG = 'Y' UNION ALL SELECT DIR.SUPERVISOR_ID ,DIR.SUPERVIS_EMPL_RCD ,DIR.EMPLID ,DIR.EMPL_RCD ,DIR.HR_DR_LEVEL ,DIR.EMPL_STATUS ,DIR.JOB_EFFDT ,DIR.POSITION_NBR ,DIR.REPORTS_TO ,DIR.SUPERVISOR_FLAG ,DIR.DRILL_DOWN_FLAG ,'4' ,' ' ,' ' FROM PS_HR_DIRECT_REP_4 DIR WHERE 4 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_MSS_CT_FL') AND HR_DR_LEVEL = 1 AND DRILL_DOWN_FLAG = 'Y' UNION ALL SELECT DIR.SUPERVISOR_ID ,DIR.SUPERVIS_EMPL_RCD ,DIR.EMPLID ,DIR.EMPL_RCD ,DIR.HR_DR_LEVEL ,DIR.EMPL_STATUS ,DIR.JOB_EFFDT ,DIR.POSITION_NBR ,DIR.REPORTS_TO ,DIR.SUPERVISOR_FLAG ,DIR.DRILL_DOWN_FLAG ,'5' ,' ' ,' ' FROM PS_HR_DIRECT_REP_5 DIR WHERE 5 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_MSS_CT_FL') AND HR_DR_LEVEL = 1 AND DRILL_DOWN_FLAG = 'Y' UNION ALL SELECT DIR.SUPERVISOR_ID ,DIR.SUPERVIS_EMPL_RCD ,DIR.EMPLID ,DIR.EMPL_RCD ,DIR.HR_DR_LEVEL ,DIR.EMPL_STATUS ,DIR.JOB_EFFDT ,DIR.POSITION_NBR ,DIR.REPORTS_TO ,DIR.SUPERVISOR_FLAG ,DIR.DRILL_DOWN_FLAG ,'6' ,' ' ,' ' FROM PS_HR_DIRECT_REP_6 DIR WHERE 6 = ( SELECT CFG.ACCESS_TYPE FROM PS_HR_DR_UI_CFG CFG WHERE CFG.PNLGRPNAME='HR_MSS_CT_FL') AND HR_DR_LEVEL = 1 AND DRILL_DOWN_FLAG = 'Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
2 SUPERVIS_EMPL_RCD Number(3,0) SMALLINT NOT NULL Supervisor employee record.
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
5 HR_DR_LEVEL Number(3,0) SMALLINT NOT NULL Number denoting how many levels down the organizational chart the employee is from the supervisor. Direct reports are always level 1.
6 EMPL_STATUS Character(1) VARCHAR2(1) NOT NULL Payroll Status
A=Active
D=Deceased
L=Leave of Absence
P=Leave With Pay
Q=Retired With Pay
R=Retired
S=Suspended
T=Terminated
U=Terminated With Pay
V=Terminated Pension Pay Out
W=Short Work Break
X=Retired-Pension Administration
7 JOB_EFFDT Date(10) DATE Job Effective Date
8 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number
9 REPORTS_TO Character(8) VARCHAR2(8) NOT NULL Reports To Position Number
10 SUPERVISOR_FLAG Character(1) VARCHAR2(1) NOT NULL Y/N field to determine if a employee is a supervisor on the direct reports tables.
11 DRILL_DOWN_FLAG Character(1) VARCHAR2(1) NOT NULL Y/N field to determine if the row will appear in the dynamic drill down query. These rows appear in the getsupervisor query.
12 ACCESS_TYPE Character(1) VARCHAR2(1) NOT NULL Access Type
1=By Dept Security Tree
2=By Supervisor ID
3=By Department Manager ID
4=By Reports To Position
5=By Part Posn Mgmt Supervisor
6=By Part Posn Mgmt Dept Mgr ID
7=By Group ID
13 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
14 DEPTID Character(10) VARCHAR2(10) NOT NULL Department