BAS_DPND_ENR_VW

(SQL View)
Index Back

Depend View for BAS Enrollment

This is a view of DEPENDENT_BENEF, restricted to individuals of type "Dependent" or "Dependent/Beneficiary", used as a prompt table for BAS Enrollment.

SELECT A.EMPLID ,A.DEPENDENT_BENEF ,A.EFFDT ,B.NAME ,A.RELATIONSHIP FROM PS_DEP_BENEF_ASOF A , PS_DEP_BEN_NAME B WHERE B.EMPLID = A.EMPLID AND B.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND (B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_DEP_BEN_NAME B1 WHERE B1.EMPLID = B.EMPLID AND B1.DEPENDENT_BENEF = B.DEPENDENT_BENEF AND B1.EFFDT <= %CurrentDateIn )) AND (A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_DEP_BENEF_ASOF A1 WHERE A1.EMPLID = A.EMPLID AND A1.DEPENDENT_BENEF = A.DEPENDENT_BENEF AND A.DEP_BENEF_TYPE IN ('D','O') AND A.DT_OF_DEATH IS NULL ))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 DEPENDENT_ID Character(2) VARCHAR2(2) NOT NULL Dependent ID
3 EFFDT Date(10) DATE Effective Date
4 NAME Character(50) VARCHAR2(50) NOT NULL Name
5 RELATIONSHIP Character(2) VARCHAR2(2) NOT NULL Relationship to Employee