UX_EMPL_JOB_VW

(SQL View)
Index Back

Direct Reports Job Data

View of current job information to be displayed in the direct reports pagelet in the manager dashboard.

SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.EFFDT , JC.JOBCODE , JC.DESCR , JC.DESCR , D.DESCR , A.POSITION_NBR , E.DESCR FROM PS_JOB A , PS_JOBCODE_TBL JC , PS_DEPT_TBL D , PS_LOCATION_TBL E WHERE A.EFFDT= ( SELECT MAX(A2.EFFDT) FROM PS_JOB A2 WHERE A.EMPLID=A2.EMPLID AND A.EMPL_RCD=A2.EMPL_RCD AND A2.EFFDT<=%CurrentDateIn ) AND A.EFFSEQ= ( SELECT MAX(A3.EFFSEQ) FROM PS_JOB A3 WHERE A.EMPLID=A3.EMPLID AND A.EMPL_RCD=A3.EMPL_RCD AND A.EFFDT=A3.EFFDT ) AND JC.SETID = A.SETID_JOBCODE AND JC.JOBCODE = A.JOBCODE AND JC.EFFDT =( SELECT MAX(JC2.EFFDT) FROM PS_JOBCODE_TBL JC2 WHERE JC2.SETID=JC.SETID AND JC2.JOBCODE=JC.JOBCODE AND JC2.EFFDT<=%CurrentDateIn ) AND D.SETID = A.SETID_DEPT AND D.DEPTID = A.DEPTID AND D.EFFDT =( SELECT MAX(D2.EFFDT) FROM PS_DEPT_TBL D2 WHERE D2.SETID=D.SETID AND D2.DEPTID=D.DEPTID AND D2.EFFDT<=%CurrentDateIn ) AND E.SETID = A.SETID_LOCATION AND E.LOCATION = A.LOCATION AND E.EFFDT =( SELECT MAX(E2.EFFDT) FROM PS_LOCATION_TBL E2 WHERE E2.SETID=E.SETID AND E2.LOCATION=E.LOCATION AND E2.EFFDT<=%CurrentDateIn )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
5 JOBCODE_DESCR Character(30) VARCHAR2(30) NOT NULL Job Code Description
6 JOBCODE_DESCR2 Character(30) VARCHAR2(30) NOT NULL Job Code Description
7 DEPTNAME Character(30) VARCHAR2(30) NOT NULL Department Name
8 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number
9 LOCATION_DESCR Character(30) VARCHAR2(30) NOT NULL Location Description