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_TYPE , A.EFFDT , A.NAME FROM PS_NAMES A WHERE A.NAME_TYPE = 'PRI' AND A.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 )

  • Related Language Record: PERSON_PNAMEVWL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    2 NAME_TYPE Character(3) VARCHAR2(3) NOT NULL Type of Name
    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 NAME Character(50) VARCHAR2(50) NOT NULL Name