SCC_PERPDE_VW

(SQL View)
Index Back

Person Effective Date View

Person Effective Date View used by personal data view SCC_PERDATA_VW.

SELECT P.EMPLID ,E.MAR_STATUS ,E.MAR_STATUS_DT ,E.SEX ,E.HIGHEST_EDUC_LVL ,E.FT_STUDENT ,E.LANG_CD ,E.ALTER_EMPLID FROM PS_PERSON P , PS_PERS_DATA_EFFDT E WHERE E.EMPLID = P.EMPLID AND %EffdtCheck(PERS_DATA_EFFDT E2, E, %CURRENTDATEIN) UNION SELECT PX.EMPLID , 'U' , %DateNull , 'U' , 'A' , 'N' , ' ' , ' ' FROM PS_PERSON PX WHERE NOT EXISTS ( SELECT 'X' FROM PS_PERS_DATA_EFFDT EX WHERE EX.EMPLID = PX.EMPLID AND %EffdtCheck(PERS_DATA_EFFDT EX2, EX, %CURRENTDATEIN) )

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

Default Value: NEW

2 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

Default Value: U

3 MAR_STATUS_DT Date(10) DATE This is the date that the employee's Marital status is/was effective. /* Marital Status date is stored redundantly on PERS_DATA_EFFDT for two reasons. 1. To allow the date to be entered prior to the first PERS_DATA_EFFDT so that the actual date for the marital status on the hire row can be entered. This is the only time that the field is enterable by the user. 2. To allow for easier reporting on the data via SQR and Crystal. This is denormalizing the PERS_DATA_EFFDT record, but the number of requests for this redundancy coupled with the need for #1, has provided the justification for denormalizing this information and taking on the added maintenance. */
4 SEX Character(1) VARCHAR2(1) NOT NULL Gender
F=Female
M=Male
U=Unknown
X=Indeterminate/Intersex/Unspec

Default Value: U

5 HIGHEST_EDUC_LVL Character(2) VARCHAR2(2) NOT NULL Highest Education Level

Default Value: A

6 FT_STUDENT Character(1) VARCHAR2(1) NOT NULL Full-Time Student

Y/N Table Edit

Default Value: N

7 LANG_CD Character(3) VARCHAR2(3) NOT NULL Language Code
CFR=Canadian French
DAN=Danish
DUT=Dutch
ENG=English
ESP=Spanish
FRA=French
GER=German
GRK=Greek
INE=International English
ITA=Italian
JPN=Japanese
KOR=Korean
POR=Portuguese
SVE=Swedish
THA=Thai
ZHS=Simplified Chinese
ZHT=Traditional Chinese
8 ALTER_EMPLID Character(11) VARCHAR2(11) NOT NULL Alternate Employee ID