PERSON_ADDR_LNG

(SQL View)
Index Back

Current Addresses Rel-Lang

Contains related-language support for the PERSON_ADDRESSES view, which is a view of an employee's current EFFDT row for each Address Type.

SELECT A.EMPLID ,A.ADDRESS_TYPE ,A1.LANGUAGE_CD ,A1.ADDR_TYPE_DESCR FROM PS_ADDRESSES A , PS_ADDRESS_TYP_LNG A1 WHERE A.ADDRESS_TYPE = A1.ADDRESS_TYPE AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_ADDRESSES B WHERE B.EMPLID = A.EMPLID AND B.ADDRESS_TYPE = A.ADDRESS_TYPE AND (B.EFFDT <= %CurrentDateIn OR (B.EFFDT > %CurrentDateIn AND %CurrentDateIn < ( SELECT MIN(C.EFFDT) FROM PS_ADDRESSES C WHERE C.EMPLID = B.EMPLID AND C.ADDRESS_TYPE = B.ADDRESS_TYPE)))) AND A.EFF_STATUS = 'A'

  • Related Language Record for PERSON_ADDRESS
  • Parent record: PERSON
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    2 ADDRESS_TYPE Character(4) VARCHAR2(4) NOT NULL Address Type

    Prompt Table: ADDRESS_TYP_TBL

    3 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    4 ADDR_TYPE_DESCR Character(30) VARCHAR2(30) NOT NULL Address Type