W3EB_4XCVGIN_VW(SQL View) |
Index Back |
---|---|
Enrollment 4x Current CoverageThis view displays the employee's current fund allocations for the 4x plan types. It shows the coverage current as of the DEDUCTION_BEGIN_DT on the BAS_PARTIC_PLAN row. |
SELECT A.SCHED_ID ,A.EMPLID ,A.BENEFIT_RCD_NBR ,A.EVENT_ID ,A.PLAN_TYPE ,C.INVESTMENT_OPT ,C.EFFDT ,C.INVESTMENT_PCT FROM PS_BAS_PARTIC_PLAN A , PS_SAVINGS_PLAN B , PS_SAVINGS_INVEST C WHERE A.PLAN_TYPE LIKE '4%' AND B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.BENEFIT_RCD_NBR AND B.PLAN_TYPE = A.PLAN_TYPE AND B.EFFDT <= A.DEDUCTION_BEGIN_DT AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_SAVINGS_PLAN BB WHERE BB.EMPLID = B.EMPLID AND BB.EMPL_RCD = B.EMPL_RCD AND BB.PLAN_TYPE = B.PLAN_TYPE AND BB.EFFDT <= A.DEDUCTION_BEGIN_DT) AND C.EMPLID = B.EMPLID AND C.EMPL_RCD = B.EMPL_RCD AND C.PLAN_TYPE = B.PLAN_TYPE AND C.EFFDT = B.EFFDT |
# | 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 | INVESTMENT_OPT | Character(6) | VARCHAR2(6) NOT NULL |
Investment Option
C=Common Stock - C Fund F=Thrift Savings Plan - F Fund G=Thrift Savings Plan - G Fund I=Thrift Savings Plan - I Fund S=Thrift Savings Plan - S Fund |
7 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
8 | INVESTMENT_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Investment Percent |