BEN_LIFE_SRCH(SQL View) |
Index Back |
---|---|
Rec for component srchLIFE_ADD_BEN is a record that identifies all life- and accidental death-related benefit elections for an employee. These benefits are related to the plan types in the '2X' series such as Basic Life, AD&D, Dependent Life, etc. Warning! For technical reasons, this record's schema shows that it is keyed by EMPL_RCD. This is not logically or functionally accurate. Throughout all of Base Benefits, when in the context of benefit enrollment, EMPL_RCD must be interpreted as an alias for BENEFIT_RCD_NBR. All benefit enrollment-related records are logically keyed by BENEFIT_RCD_NBR, so here EMPL_RCD actually contains the value of the appropriate BENEFIT_RCD_NBR. It is CRITICAL that all joins, comparisons, and updates to this record be against BENEFIT_RCD_NBR. Thus a typical driving join for benefit participation is PS_PER_ORG_ASGN.BENEFIT_RCD_NBR = PS_BEN_PROG_PARTIC.EMPL_RCD, and a typical join for benefit enrollment is PS_PER_ORG_ASGN.BENEFIT_RCD_NBR = PS_HEALTH_BENEFIT.EMPL_RCD. The security and search views used in Base Benefits perform this "mapping" internally. |
SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.PLAN_TYPE , A.BENEFIT_NBR , A.EFFDT , A.DEDUCTION_END_DT , A.COVERAGE_BEGIN_DT , A.COVERAGE_END_DT , A.COVERAGE_ELECT , A.COVERAGE_ELECT_DT , A.BENEFIT_PLAN , A.FLAT_AMOUNT , A.GVT_ASSIGNED , T.XLATLONGNAME ,B.DESCR ,B.EFFDT FROM PSXLATITEM T ,(PS_LIFE_ADD_BEN A LEFT OUTER JOIN PS_BEN_H_PLAN_SRCH B ON A.PLAN_TYPE=B.PLAN_TYPE AND A.BENEFIT_PLAN =B.BENEFIT_PLAN) WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_LIFE_ADD_BEN A_ED WHERE A.EMPLID = A_ED.EMPLID AND A.EMPL_RCD = A_ED.EMPL_RCD AND A.PLAN_TYPE = A_ED.PLAN_TYPE AND A.BENEFIT_NBR = A_ED.BENEFIT_NBR AND A_ED.EFFDT <= %CurrentDateIn) AND T.FIELDNAME='PLAN_TYPE' AND T.FIELDVALUE=A.PLAN_TYPE |
# | 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 Record
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.
Default Value: 20 |
4 | BENEFIT_NBR | Number(3,0) | SMALLINT NOT NULL | Note! Although this field is part of the index schema for most Base Benefits enrollment-related records, it was in fact never functionally implemented. As such, it is CRITICAL that this field always be set to zero 0. |
5 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: LIFE_ADD_BEN.COVERAGE_BEGIN_DT |
6 | DEDUCTION_END_DT | Date(10) | DATE | Deduction End Date |
7 | COVERAGE_BEGIN_DT | Date(10) | DATE NOT NULL | Coverage Begin Date |
8 | COVERAGE_END_DT | Date(10) | DATE | Coverage End Date |
9 | COVERAGE_ELECT | Character(1) | VARCHAR2(1) NOT NULL |
Coverage Election
E=Elect T=Terminate W=Waive Default Value: E |
10 | COVERAGE_ELECT_DT | Date(10) | DATE NOT NULL |
Coverage Elect Date
Default Value: %date |
11 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL |
Benefit Plan
Prompt Table: BEN_PROG_BENPLN |
12 | FLAT_AMOUNT | Signed Number(9,0) | DECIMAL(8) NOT NULL | Flat Amount |
13 | GVT_ASSIGNED | Character(1) | VARCHAR2(1) NOT NULL |
Assigned?
Y/N Table Edit Default Value: N |
14 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
15 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
16 | EFFDT_PLAN | Date(10) | DATE | Plan Effective Date |