SAD_UC_APDNM_VW

(SQL View)
Index Back

Display name view

Display name view for Apply

SELECT A.EMPLID , A.NAME_DISPLAY FROM PS_NAMES A WHERE A.NAME_TYPE='PRF' AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_NAMES B WHERE B.EMPLID = A.EMPLID AND B.NAME_TYPE = A.NAME_TYPE AND B.EFFDT <= %CurrentDateTimeIn ) UNION SELECT A.EMPLID, A.NAME_DISPLAY FROM PS_NAMES A WHERE A.NAME_TYPE='PRI' AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_NAMES B WHERE B.EMPLID = A.EMPLID AND B.NAME_TYPE = A.NAME_TYPE AND B.EFFDT <= %CurrentDateTimeIn )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country