W3EB_SAVPLAN_VW(SQL View) |
Index Back |
---|---|
Multiple Job/Current Eff DateThis view will be used by the View Savings Plan functional requirement. The requirement is that the user be able to see multiple jobs in which he or she has benefits. Each Job can have a different Effective Date. The user should be able to view the current Savings_Plan record for each job. Effective date is not a key to prevent the panel processor from only showing the Current row where there more than one empl_rcd numbers. |
SELECT S.EMPLID , S.EMPL_RCD , S.PLAN_TYPE , S.BENEFIT_NBR , S.EFFDT , B.DESCR , B.GROUP_NBR , S.DEDUCTION_END_DT , S.COVERAGE_BEGIN_DT , S.COVERAGE_END_DT , S.COVERAGE_ELECT , S.COVERAGE_ELECT_DT , S.BENEFIT_PLAN , S.SAVINGS_COVRG , S.FLAT_DED_AMT , S.PCT_GROSS , S.SAVINGS_COVRG_ATAX , S.FLAT_DED_AMT_ATAX , S.PCT_GROSS_ATAX FROM PS_SAVINGS_PLAN S , PS_BENEF_PLAN_TBL B WHERE S.PLAN_TYPE = B.PLAN_TYPE AND S.BENEFIT_PLAN = B.BENEFIT_PLAN AND (S.EFFDT = ( SELECT MAX(S1.EFFDT) FROM PS_SAVINGS_PLAN S1 WHERE S1.EMPLID = S.EMPLID AND S1.EMPL_RCD = S.EMPL_RCD AND S1.PLAN_TYPE = S.PLAN_TYPE AND S1.BENEFIT_PLAN = S.BENEFIT_PLAN AND S1.EFFDT <= S.EFFDT)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Empl Rcd Nbr
Prompt Table: PER_ORG_ASGN_VW |
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.
Default Value: 40 |
4 | BENEFIT_NBR | Number(3,0) | SMALLINT NOT NULL | Note! Although this field is part of the index schema for most Base Benefits enrollment-related records, it was in fact never functionally implemented. As such, it is CRITICAL that this field always be set to zero 0. |
5 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: SAVINGS_PLAN.COVERAGE_BEGIN_DT |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | GROUP_NBR | Character(30) | VARCHAR2(30) NOT NULL | Group Number |
8 | DEDUCTION_END_DT | Date(10) | DATE | Deduction End Date |
9 | COVERAGE_BEGIN_DT | Date(10) | DATE NOT NULL | Coverage Begin Date |
10 | COVERAGE_END_DT | Date(10) | DATE | Coverage End Date |
11 | COVERAGE_ELECT | Character(1) | VARCHAR2(1) NOT NULL |
Coverage Election
E=Elect T=Terminate W=Waive Default Value: E |
12 | COVERAGE_ELECT_DT | Date(10) | DATE NOT NULL |
Coverage Elect Date
Default Value: %date |
13 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL |
Benefit Plan
Prompt Table: BEN_PROG_BENPLN |
14 | SAVINGS_COVRG | Character(1) | VARCHAR2(1) NOT NULL |
Savings Coverage
1=Flat Amount 2=Percent of Gross Default Value: 1 |
15 | FLAT_DED_AMT | Number(9,2) | DECIMAL(8,2) NOT NULL | Flat Deduction Amount |
16 | PCT_GROSS | Number(7,3) | DECIMAL(6,3) NOT NULL | Percent of Gross |
17 | SAVINGS_COVRG_ATAX | Character(1) | VARCHAR2(1) NOT NULL |
Savings Coverage After-Tax
1=Flat Amount 2=Percent of Gross Default Value: 1 |
18 | FLAT_DED_AMT_ATAX | Number(9,2) | DECIMAL(8,2) NOT NULL | Flat Deduction Amt After-Tax |
19 | PCT_GROSS_ATAX | Number(7,3) | DECIMAL(6,3) NOT NULL | Percent of Gross After-Tax |