GPES_SPS_NID_VW

(SQL View)
Index Back

retrieve Employee Spouse ID NO

The DEP_BENEF_NID table can contain different ID's for an employee dependant. This view is required to retrieve the ID number of the spouse of the employee.

SELECT A.EMPLID , A.NATIONAL_ID FROM PS_DEP_BENEF_NID A , PS_DEPENDENT_VW B WHERE A.EMPLID = B.EMPLID AND B.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND B.RELATIONSHIP = 'SP' AND (A.NATIONAL_ID_TYPE = 'DNI' OR A.NATIONAL_ID_TYPE = 'NIE')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 NATIONAL_ID Character(20) VARCHAR2(20) NOT NULL National ID