BAS_BENF_ENR_VW(SQL View) |
Index Back |
---|---|
Benef View for BAS EnrollmentThis is a view of DEPENDENT_BENEF, restricted to individuals of type "Beneficiary" or "Dependent/Beneficiary", used as a prompt table for BAS Enrollment. |
SELECT DISTINCT C.EMPLID , B.DEPENDENT_BENEF , B.EFFDT , B.NAME , C.RELATIONSHIP FROM PS_DEP_BEN_NAME B , PS_DEP_BENEF_ASOF C WHERE C.EMPLID = B.EMPLID AND C.DEPENDENT_BENEF = B.DEPENDENT_BENEF AND C.DEP_BENEF_TYPE IN ('B','O') AND C.DT_OF_DEATH IS NULL 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) |
# | 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 |