GPES_SPS_NID_VW(SQL View) |
Index Back |
---|---|
retrieve Employee Spouse ID NOThe 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.COUNTRY , A.NATIONAL_ID_TYPE , 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 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
3 | NATIONAL_ID_TYPE | Character(6) | VARCHAR2(6) NOT NULL | National ID Type |
4 | NATIONAL_ID | Character(20) | VARCHAR2(20) NOT NULL | National ID |