TL_EE_VW

(SQL View)
Index Back

View of TL employee aiding ESS

This view brings in the displayable name of an employee and enables selection of jobs associated with TL.

SELECT EMPLID , 0 , NAME_DISPLAY FROM PS_NAMES N WHERE N.NAME_TYPE = 'PRI' AND N.EFFDT = ( SELECT MAX(SUB.EFFDT) FROM PS_NAMES SUB WHERE SUB.EMPLID = N.EMPLID AND SUB.NAME_TYPE = N.NAME_TYPE AND SUB.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

Prompt Table: TL_EDJC_VW

3 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country