DIR_REPORTS_VWL

(SQL View)
Index Back

Non-Base Lng - DIR_REPORTS_VW

Non-Base Language view for DIR_REPORTS_VW.

SELECT A.EMPLID , A.EMPL_RCD , A.SUPERVISOR_ID , B.LANGUAGE_CD , B.NAME , B.LAST_NAME , B.FIRST_NAME FROM PS_PERSON_NAME_LVW B , PS_JOB A WHERE A.EMPLID = B.EMPLID AND A.EMPL_STATUS IN ('A', 'L', 'P', 'W') AND 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 )

# 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 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
4 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
5 NAME Character(50) VARCHAR2(50) NOT NULL Name
6 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
7 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name