W3EB_BENLIFE_VW

(SQL View)
Index Back

EE Current Life AD/D Benefits

LIFE_VW is a select-only view used to display an employee's current life and accidental death plan elections (plan type '2X'). This view accesses fields from the PS_LIFE_ADD_BEN table, and is used by the Benefits Summary 1 panel.

SELECT A.EMPLID ,A.EMPL_RCD ,A.PLAN_TYPE ,A.EFFDT ,A.COVERAGE_BEGIN_DT ,A.BENEFIT_PLAN ,B.DESCR ,B.SETID ,B.VENDOR_ID ,B.GROUP_NBR ,C.COVERAGE_TYPE ,C.BN_FORMULA_ID ,C.ENROLLE_TYPE ,C.SUM_DEP_COVG ,CAST (A.FLAT_AMOUNT AS INTEGER) FROM PS_LIFE_ADD_BEN A ,PS_BENEF_PLAN_TBL B ,PS_LIFE_ADD_TBL C WHERE A.PLAN_TYPE = B.PLAN_TYPE AND A.PLAN_TYPE = C.PLAN_TYPE AND A.BENEFIT_PLAN = B.BENEFIT_PLAN AND A.BENEFIT_PLAN = C.BENEFIT_PLAN AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_LIFE_ADD_TBL D WHERE D.PLAN_TYPE = C.PLAN_TYPE AND D.BENEFIT_PLAN = C.BENEFIT_PLAN AND D.EFFDT <=A.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PERSON

2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr

Prompt Table: PER_ORG_ASGN_VW

3 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.
4 EFFDT Date(10) DATE Effective Date

Default Value: %date

5 COVERAGE_BEGIN_DT Date(10) DATE NOT NULL Coverage Begin Date
6 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
8 SETID Character(5) VARCHAR2(5) NOT NULL SetID
9 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
10 GROUP_NBR Character(30) VARCHAR2(30) NOT NULL Group Number
11 COVERAGE_TYPE Character(1) VARCHAR2(1) NOT NULL This field is used to define the coverage level.
1=Plan Level
2=Employee Level
12 BN_FORMULA_ID Character(10) VARCHAR2(10) NOT NULL This field is key for defining the formula and formula can be uniquely identified by this field.
13 ENROLLE_TYPE Character(1) VARCHAR2(1) NOT NULL The Field is used to determine the insuerd person type.
1=Coverage Employee
2=Coverage Dependents
14 SUM_DEP_COVG Character(1) VARCHAR2(1) NOT NULL This Field determines the if need to sum the dependent coverage amount or not.
15 FLAT_AMOUNT1 Number(8,0) INTEGER NOT NULL Flat Amount