FS_EMPL_VW

(SQL View)
Index Back

Approver Personnel Data View

View of data from various personnel tables.

SELECT B.OPRID , A.EMPLID , D.DEPTID , C.SUPERVISOR_ID , C.PHONE , C.REPORTS_TO , B.EMAILID , C.BUSINESS_TITLE , A.NAME , A.SEX , A.FIRST_NAME , A.LAST_NAME FROM PS_PERSONAL_DATA A , PSOPRDEFN B , PS_EMPLOYMENT C , PS_JOB D WHERE D.EMPLID = C.EMPLID AND A.PER_STATUS = 'E' AND A.EMPLID = C.EMPLID AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_JOB D1 WHERE D1.EMPLID = D.EMPLID AND D1.EFFDT <= %CurrentDateIn) AND D.EFFSEQ = ( SELECT MAX(D2.EFFSEQ) FROM PS_JOB D2 WHERE D2.EMPLID = D.EMPLID AND D2.EFFDT = D.EFFDT) AND A.EMPLID = B.EMPLID AND D.EMPL_STATUS = 'A' AND B.OPRID = ( SELECT MAX(BB.OPRID) FROM PS_PERSONAL_DATA AA , PSOPRDEFN BB WHERE AA.EMPLID = BB.EMPLID AND A.EMPLID = AA.EMPLID )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
4 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
5 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
6 REPORTS_TO Character(8) VARCHAR2(8) NOT NULL Reports To Position Number
7 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
8 BUSINESS_TITLE Character(30) VARCHAR2(30) NOT NULL Business Title
9 NAME Character(50) VARCHAR2(50) NOT NULL Name
10 SEX Character(1) VARCHAR2(1) NOT NULL Gender
F=Female
M=Male
U=Unknown
11 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
12 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name