PERSON_GENDER

(SQL View)
Index Back

Person Gender Details


SELECT A.EMPLID ,A.REG_REGION ,A.SEX ,A.BIRTH_SEX ,A.PRONOUN ,A.SEXUAL_ORIENTATION ,A.GENDER_IDENTITY ,A.EFFDT ,' ' 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) UNION SELECT A.EMPLID ,A.REG_REGION ,A.SEX ,A.BIRTH_SEX ,A.PRONOUN ,A.SEXUAL_ORIENTATION ,A.GENDER_IDENTITY ,A.EFFDT ,' ' FROM PS_PERS_DATA_EFFDT A WHERE A.EFFDT > %CurrentDateIn UNION SELECT A.EMPLID ,A.REG_REGION ,A.SEX ,A.BIRTH_SEX ,A.PRONOUN ,A.SEXUAL_ORIENTATION ,A.GENDER_IDENTITY ,A.ACTION_DT_SS ,A.SS_STAT_INDICATOR FROM PS_HR_GENDER_DAT A WHERE A.SS_STAT_INDICATOR IN ('M', 'I') AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_HR_GENDER_DAT A2 WHERE A2.EMPLID = A.EMPLID AND A2.ACTION_DT_SS = A.ACTION_DT_SS)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region

Default Value: OPR_DEF_TBL_HR.REG_REGION

Prompt Table: REG_REGION_TBL

3 SEX Character(1) VARCHAR2(1) NOT NULL Gender
F=Female
M=Male
U=Unknown

Default Value: U

4 BIRTH_SEX Character(2) VARCHAR2(2) NOT NULL Birth Sex

Prompt Table: BIRTH_SEX_DTL

5 PRONOUN Character(2) VARCHAR2(2) NOT NULL Gender Pronoun

Prompt Table: GENDER_PRON_DTL

6 SEXUAL_ORIENTATION Character(2) VARCHAR2(2) NOT NULL Sexual Orientation

Prompt Table: GENDER_ORNT_DTL

7 GENDER_IDENTITY Character(2) VARCHAR2(2) NOT NULL Gender Identity

Prompt Table: GENDER_IDNT_DTL

8 ASOFDATE Date(10) DATE As of Date
9 SS_STAT_INDICATOR Character(1) VARCHAR2(1) NOT NULL Used on "_DAT" records for 8.3 Workflow Enhancements
A=Approved
B=CI failed - Errors & Warnings
C=Cancelled
D=Denied
E=Errors Encountered
I=In Approval Process
M=Administrator Action Required
S=Success
W=Warnings Encountered