PERSON_PNAME_VW

(SQL View)
Index Back

Primary Name View

This is a view of Primary Names from the PS_NAMES table. This view is intended to improve performance, since all columns referenced in the view can be fetched directly from the index without reading the underlying PS_NAMES table.

SELECT A.EMPLID , A.NAME , A.NAME_TYPE , A.EFFDT FROM PS_NAMES A WHERE NAME_TYPE = 'PRI' AND EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_NAMES A1 WHERE A1.EMPLID = A.EMPLID AND A1.NAME_TYPE = A.NAME_TYPE AND A1.EFFDT <= %CurrentDateIn )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 NAME Character(50) VARCHAR2(50) NOT NULL Name
3 NAME_TYPE Character(3) VARCHAR2(3) NOT NULL Type of Name
4 EFFDT Date(10) DATE Effective Date

Default Value: %date