GPHK_EE_SPS_VW(SQL View) |
Index Back |
---|---|
Retrieve Employee Spouse nameFor the purpose of reporting, we need to retrieve the employee spouse name. |
SELECT A.EMPLID , A.NAME FROM PS_DEPENDENT_VW B , PS_DEP_BEN_NAME A WHERE B.RELATIONSHIP = 'SP' AND A.EMPLID = B.EMPLID AND A.DEPENDENT_BENEF = B.DEPENDENT_BENEF AND A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_DEP_BEN_NAME A1 WHERE A1.EMPLID = B.EMPLID AND A1.DEPENDENT_BENEF = B.DEPENDENT_BENEF AND A1.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |