GPFR_PERS_DT_VW

(SQL View)
Index Back

Current Personal Data

This view retrieves the currently effective personal data record. Only one row per emplid is returned. If a personal data only exists in the Future, then that personal data's most future dated row will be returned.

SELECT A.EMPLID , A.SEX , A.MAR_STATUS FROM PS_PERS_DATA_EFFDT A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_PERS_DATA_EFFDT B WHERE B.EMPLID = A.EMPLID AND ( B.EFFDT <= %CurrentDateIn OR (B.EFFDT > %CurrentDateIn AND %CurrentDateIn < ( SELECT MIN(C.EFFDT) FROM PS_PERS_DATA_EFFDT C WHERE C.EMPLID = B.EMPLID))))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 SEX Character(1) VARCHAR2(1) NOT NULL Gender
F=Female
M=Male
U=Unknown
3 MAR_STATUS Character(1) VARCHAR2(1) NOT NULL Marital Status
C=Common-Law
D=Divorced
E=Separated
H=Head of Household
L=DissDeclLost Civil Partner
M=Married
P=Civil Partnership
S=Single
T=Surviving Civil Partner
U=Unknown
V=Dissolved Civil Partnership
W=Widowed