BEN_PROG_BENCVC(SQL View) |
Index Back |
---|---|
Benefit Plan/Opt Coverage CodeBEN_PRPG_BENCVC is a view of Plan Types and Benefit Plans and Coverage Codes in Benefit Programs. It selects data from PS_Ben_Defn_Pgm, and PS_Ben_Defn_Optn with option type equal to 'O'ption and effective status = 'A'ctive. This view is used on the Health Enrollment panel. |
SELECT A.Benefit_Program ,A.EffDt ,B.Plan_Type ,B.Benefit_Plan ,B.Covrg_Cd ,C.Descr ,A.Program_Type ,B.Option_Cd FROM PS_BEN_DEFN_PGM A, PS_Ben_Defn_Optn B, PS_Covrg_Cd_Tbl C WHERE A.Eff_Status = 'A' AND A.Benefit_Program = B.Benefit_Program AND A.Effdt = B.Effdt AND B.Covrg_cd = C.Covrg_cd AND B.Option_Type = 'O' AND C.EFFDT = (SELECT MAX(EFFDT) FROM PS_COVRG_CD_TBL D WHERE C.COVRG_CD = D.COVRG_CD) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BENEFIT_PROGRAM | Character(3) | VARCHAR2(3) NOT NULL | Defines a collection of benefit plans and their associated rate and calculation rules. |
2 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
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 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL |
Benefit Plan
Prompt Table: BENEF_PLAN_TBL |
5 | COVRG_CD | Character(2) | VARCHAR2(2) NOT NULL |
Coverage Code
Prompt Table: COVRG_CD_TBL |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | PROGRAM_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Program Type
A=Automated M=Manual |
8 | OPTION_CD | Character(3) | VARCHAR2(3) NOT NULL | Option Code |