PY_MOD_BNP_L_VW(SQL View) |
Index Back |
---|---|
Rel. Lang. for PY_MOD_BNP_VWThis view is used to show the latest currently active benefit program. |
SELECT DISTINCT B.PLAN_TYPE , B.BENEFIT_PROGRAM , B.BENEFIT_PLAN , C.LANGUAGE_CD , C.DESCR FROM PS_BEN_DEFN_PGM A , PS_BEN_DEFN_OPTN B , PS_BENEF_PLAN_LANG C WHERE A.EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_BEN_DEFN_PGM A_ED WHERE A.BENEFIT_PROGRAM = A_ED.BENEFIT_PROGRAM AND A_ED.EFFDT <= %CurrentDateIn) AND B.BENEFIT_PROGRAM = A.BENEFIT_PROGRAM AND B.EFFDT = A.EFFDT AND B.OPTION_TYPE = 'O' AND B.OPTION_ID = ( SELECT MAX(B1.OPTION_ID) FROM PS_BEN_DEFN_OPTN B1 WHERE B1.BENEFIT_PROGRAM = B.BENEFIT_PROGRAM AND B1.OPTION_TYPE = 'O' AND B1.EFFDT = B.EFFDT AND B1.PLAN_TYPE = B.PLAN_TYPE AND B1.BENEFIT_PLAN = B.BENEFIT_PLAN) AND C.PLAN_TYPE = B.PLAN_TYPE AND C.BENEFIT_PLAN = B.BENEFIT_PLAN AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_BENEF_PLAN_LANG D WHERE D.PLAN_TYPE = C.PLAN_TYPE AND D.BENEFIT_PLAN = C.BENEFIT_PLAN AND D.LANGUAGE_CD = C.LANGUAGE_CD AND D.EFFDT <= A.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | 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. |
2 | BENEFIT_PROGRAM | Character(3) | VARCHAR2(3) NOT NULL | Defines a collection of benefit plans and their associated rate and calculation rules. |
3 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
4 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |