GPDE_ADTYPE_VW(SQL View) |
Index Back |
---|---|
View for Address typeView to Retrive correct address type for Germany reporting. |
SELECT EMPLID , ADDRESS_TYPE , EFFDT FROM PS_ADDRESSES A WHERE ( A.ADDRESS_TYPE IN ( SELECT PNT.ADDRESS_TYPE FROM PS_GPDE_AL_INSTALL PNT) ) OR ( A.ADDRESS_TYPE NOT IN ( SELECT ADDRESS_TYPE FROM PS_GPDE_AL_INSTALL) AND NOT EXISTS( SELECT 'x' FROM PS_ADDRESSES AE WHERE AE.EMPLID = A.EMPLID AND AE.ADDRESS_TYPE = ( SELECT PNT2.ADDRESS_TYPE FROM PS_GPDE_AL_INSTALL PNT2) AND AE.EFFDT <= A.EFFDT ) AND A.ADDRESS_TYPE = 'HOME' ) |
# | 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 |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |