PERSON_NAME_LVW

(SQL View)
Index Back

Person Name Non-Base Languages

View that returns the person's current name in non-base languages. This view is NOT to be used as a related-language record, but INSTEAD of a related-language record when filling rowsets.

SELECT A.EMPLID , L.LANGUAGE_CD ,%Sql(NAME_SBR_LNG, A) FROM PSLANGUAGES L , PS_NAMES_LNG A WHERE L.INSTALLED = 1 AND A.LANGUAGE_CD = L.LANGUAGE_CD AND A.NAME_TYPE = 'PRI' AND A.EFFDT = ( SELECT MAX(AA.EFFDT) FROM PS_NAMES_LNG AA WHERE AA.EMPLID = A.EMPLID AND AA.NAME_TYPE = A.NAME_TYPE AND AA.EFFDT <= %CurrentDateIn ) UNION SELECT A.EMPLID , L.LANGUAGE_CD ,%Sql(NAME_SBR_LNG, A) FROM PSLANGUAGES L , PS_NAMES A WHERE L.LANGUAGE_CD <> ( SELECT O.LANGUAGE_CD FROM PSOPTIONS O) AND L.INSTALLED = 1 AND A.NAME_TYPE = 'PRI' AND A.EFFDT = ( SELECT MAX(AA.EFFDT) FROM PS_NAMES AA WHERE AA.EMPLID = A.EMPLID AND AA.NAME_TYPE = A.NAME_TYPE AND AA.EFFDT <= %CurrentDateIn ) AND NOT EXISTS ( SELECT 'X' FROM PS_NAMES_LNG B WHERE B.EMPLID = A.EMPLID AND B.NAME_TYPE = A.NAME_TYPE AND B.EFFDT = A.EFFDT AND B.LANGUAGE_CD = L.LANGUAGE_CD)

  • Parent record: PERSON
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

    Prompt Table: PERSON

    2 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    3 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
    4 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
    5 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
    6 SECOND_LAST_NAME Character(30) VARCHAR2(30) NOT NULL Second Last Name
    7 NAME_INITIALS Character(6) VARCHAR2(6) NOT NULL Name Initials
    8 PARTNER_LAST_NAME Character(30) VARCHAR2(30) NOT NULL The Partner Last Name is being used by the Netherlands for the employee name formatting, where a person can choose to use the partners last name as their prefered last name.
    9 PREF_FIRST_NAME Character(30) VARCHAR2(30) NOT NULL Preferred First Name
    10 PREF_LAST_NAME Character(30) VARCHAR2(30) NOT NULL Preferred Last Name
    11 PREF_MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL Preferred Middle Name
    12 PREF_SEC_LAST_NAME Character(30) VARCHAR2(30) NOT NULL Preferred Second Last Name
    13 NAME Character(50) VARCHAR2(50) NOT NULL Name
    14 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country
    15 NAME_FORMAL Character(60) VARCHAR2(60) NOT NULL Formal Name - name formatted for Formal Display by COuntry. Normally used in Correspondence.
    16 NAME_FORMAL_PSF Character(60) VARCHAR2(60) NOT NULL Preferred Name (PS FORMAT)
    17 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
    18 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
    19 MIDDLE_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Middle Name uppercase search field
    20 SECOND_LAST_SRCH Character(30) VARCHAR2(30) NOT NULL Second Last Name
    21 NAME_AC Character(50) VARCHAR2(50) NOT NULL Alternate Character Name
    22 PARTN_LAST_NM_SRCH Character(30) VARCHAR2(30) NOT NULL Uppercase version of partner last name to improve performance on searches.
    23 PREF_FIRST_NM_SRCH Character(30) VARCHAR2(30) NOT NULL Preferred First Name
    24 PREF_LAST_NM_SRCH Character(30) VARCHAR2(30) NOT NULL Uppercase version of preferred last name to improve performance on searches.
    25 PREF_MIDL_NM_SRCH Character(30) VARCHAR2(30) NOT NULL Uppercase version of preferred middle name to improve performance on searches.
    26 PREF_LAST_SEC_SRCH Character(30) VARCHAR2(30) NOT NULL Uppercase version of preferred second last name to improve performance on searches.
    27 NAME_DISPLAY_SRCH Character(50) VARCHAR2(50) NOT NULL Uppercase version of Name to improve performance on searches.
    28 NAME_FORMAL_SRCH Character(60) VARCHAR2(60) NOT NULL Uppercase version of formal name to improve performance on searches.