HD_360_BENDP_VW

(SQL View)
Index Back

CRM Help Desk - Dep/Ben View

View used to identify an employee's dependent/beneficiaries, complete with a description of the relationship code.

SELECT A.EMPLID , A.DEPENDENT_BENEF , B.EFFDT , A.BIRTHDATE , A.DT_OF_DEATH , C.NAME_DISPLAY , B.RELATIONSHIP , X.XLATSHORTNAME FROM PS_DEP_BEN A , PS_DEP_BEN_EFF B , PS_DEP_BEN_NAME C , PSXLATITEM X WHERE B.EMPLID = A.EMPLID AND B.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND C.EMPLID = A.EMPLID AND C.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_DEP_BEN_NAME C1 WHERE C1.EMPLID = A.EMPLID AND C1.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND C1.EFFDT <= B.EFFDT) AND X.FIELDNAME = 'RELATIONSHIP' AND X.FIELDVALUE = B.RELATIONSHIP

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 DEPENDENT_BENEF Character(2) VARCHAR2(2) NOT NULL Dependent Benefit
01=default
3 EFFDT Date(10) DATE Effective Date
4 BIRTHDATE Date(10) DATE Date of Birth
5 DT_OF_DEATH Date(10) DATE Date of Death
6 NAME Character(50) VARCHAR2(50) NOT NULL Name
7 RELATIONSHIP Character(2) VARCHAR2(2) NOT NULL Relationship to Employee
8 RELATION_DESCR Character(30) VARCHAR2(30) NOT NULL Relationship Descr