BAS_CMP_PLAN_VW(SQL View) |
Index Back |
---|---|
Plan Compare Display Data |
SELECT A.BENEFIT_PROGRAM , A.PLAN_TYPE , A.BENEFIT_PLAN , A.EFFDT , COALESCE (P.BAS_CMP_TMPL_ID , ' ') , A.EFF_STATUS FROM PS_BAS_CMP_PLAN A LEFT JOIN PS_BEN_DEFN_PLAN P ON P.BENEFIT_PROGRAM = A.BENEFIT_PROGRAM AND P.PLAN_TYPE = A.PLAN_TYPE WHERE A.EFFDT=( SELECT MAX(EFFDT) FROM PS_BAS_CMP_PLAN B WHERE B.BENEFIT_PROGRAM = A.BENEFIT_PROGRAM AND B.PLAN_TYPE=A.PLAN_TYPE AND B.BENEFIT_PLAN= A.BENEFIT_PLAN ) AND P.EFFDT = ( SELECT MAX(EFFDT) FROM PS_BEN_DEFN_PLAN P1 WHERE P1.BENEFIT_PROGRAM = A.BENEFIT_PROGRAM AND P1.PLAN_TYPE = A.PLAN_TYPE AND P1.EFFDT <= A.EFFDT) |
# | 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.
Prompt Table: BEN_DEFN_PGM |
2 | 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. |
3 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
4 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
5 | BAS_CMP_TMPL_ID | Character(10) | VARCHAR2(10) NOT NULL | Template ID |
6 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |