GPBR_EMP_SRC_VW

(SQL View)
Index Back

Search Employees View

Search Employees View

SELECT A.EMPLID , A.EMPL_RCD , B.FIRST_NAME , B.LAST_NAME , A.DEPTID , A.PER_ORG , JC.DESCR FROM PS_JOB A , PS_NAMES B , PS_JOBCODE_TBL JC WHERE B.EMPLID = A.EMPLID AND A.PER_ORG = 'EMP' AND A.EFFDT = ( SELECT MAX(A2.EFFDT) FROM PS_JOB A2 WHERE A2.EMPLID = A.EMPLID AND A2.EMPL_RCD = A.EMPL_RCD) AND A.EFFSEQ = ( SELECT MAX(A3.EFFSEQ) FROM PS_JOB A3 WHERE A3.EMPLID = A.EMPLID AND A3.EMPL_RCD = A.EMPL_RCD AND A3.EFFDT = A.EFFDT) AND B.NAME_TYPE = 'PRI' AND B.EFFDT = ( SELECT MAX(B2.EFFDT) FROM PS_NAMES B2 WHERE B2.EMPLID = B.EMPLID AND B2.NAME_TYPE = B.NAME_TYPE AND B2.EFFDT <= A.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<=A.EFFDT )

# 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 Rcd Nbr
3 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
4 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
5 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
6 PER_ORG Character(3) VARCHAR2(3) NOT NULL Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker
EMP=Employee
POI=Person of Interest
7 JOBCODE_DESCR Character(30) VARCHAR2(30) NOT NULL Job Code Description