W3EB_LFE_SRC_VW

(SQL View)
Index Back

eBenefits

Insurance search record that contains only the most effective dated information from the the LIFE_ADD_BEN table

SELECT A.EMPLID , O.OPRID , A.EMPL_RCD , A.PLAN_TYPE , A.COVERAGE_ELECT FROM PS_LIFE_ADD_BEN A , PSOPRDEFN O WHERE A.COVERAGE_ELECT <> 'T' AND A.PLAN_TYPE <> '24' AND A.PLAN_TYPE <> '25' AND A.EMPLID = O.EMPLID AND A.EFFDT= ( SELECT MAX(A1.EFFDT) FROM PS_LIFE_ADD_BEN A1 WHERE A1.EMPLID=A.EMPLID AND A1.PLAN_TYPE=A.PLAN_TYPE AND A1.EMPL_RCD=A.EMPL_RCD AND A1.COVERAGE_ELECT <>'T' AND A1.EFFDT<=%CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
4 PLAN_TYPE Character(2) VARCHAR2(2) NOT NULL Identifies a category of benefit plan, such as Medical, Dental, and Life (Insurance). A set of plan type codes, as well as rules for creating new codes, is provided by PeopleSoft. Plan Type codes determine how the system processes and defines eligibility for the various benefit plans.
5 COVERAGE_ELECT Character(1) VARCHAR2(1) NOT NULL Coverage Election
E=Elect
T=Terminate
W=Waive