W3EB_PGM_OPT_VW(SQL View) |
Index Back |
---|---|
Program Option DataThis view sits at level 2 on the enrollment setup table. It holds the otpion definitions from the benefit program definition. |
SELECT A.SCHED_ID ,A.EMPLID ,A.BENEFIT_RCD_NBR ,A.EVENT_ID ,A.PLAN_TYPE ,A.OPTION_ID ,A.OPTION_TYPE ,B.OPTION_CD ,B.BENEFIT_PLAN ,B.COVRG_CD ,B.DEDCD ,B.CROSS_PLAN_TYPE ,B.CROSS_BENEF_PLAN ,B.COVERAGE_LIMIT_PCT ,B.CROSS_PLN_DPND_CHK FROM PS_BAS_PARTIC_OPTN A , PS_BEN_DEFN_OPTN B WHERE A.HISTORY_ONLY = 'N' AND A.BENEFIT_PROGRAM = B.BENEFIT_PROGRAM AND A.PLAN_TYPE = B.PLAN_TYPE AND A.OPTION_ID = B.OPTION_ID AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_BEN_DEFN_PLAN BB WHERE BB.BENEFIT_PROGRAM = B.BENEFIT_PROGRAM AND BB.EFFDT <= A.EVENT_DT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SCHED_ID | Character(6) | VARCHAR2(6) NOT NULL | Schedule ID |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
3 | BENEFIT_RCD_NBR | Number(3,0) | SMALLINT NOT NULL | Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number. |
4 | EVENT_ID | Number(6,0) | INTEGER NOT NULL | Event Identification |
5 | 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. |
6 | OPTION_ID | Number(4,0) | SMALLINT NOT NULL | Option ID |
7 | OPTION_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Option Type
D=General Deduction G=General Credit O=Option P=Program W=Waive Option |
8 | OPTION_CD | Character(3) | VARCHAR2(3) NOT NULL | Option Code |
9 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
10 | COVRG_CD | Character(2) | VARCHAR2(2) NOT NULL | Coverage Code |
11 | DEDCD | Character(6) | VARCHAR2(6) NOT NULL | Deduction Code |
12 | CROSS_PLAN_TYPE | Character(2) | VARCHAR2(2) NOT NULL | Cross Plan Type |
13 | CROSS_BENEF_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Cross Benefit Plan |
14 | COVERAGE_LIMIT_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Cross Coverage Limit Pct |
15 | CROSS_PLN_DPND_CHK | Character(1) | VARCHAR2(1) NOT NULL | Cross Plan Dependent Check |