RTRMNT_VW(SQL View) |
Index Back |
---|---|
EE Current Retirement BenefitsRTRMNT_VW is a select-only view used to display current retirement plan elections (plan type '7X') for US employees. This view accesses fields from the PS_RTRMNT_PLAN table, and is used by the US version of the Benefits Summary 2 panel. |
SELECT A.EMPLID ,A.EMPL_RCD ,A.PLAN_TYPE ,A.EFFDT ,A.DEDUCTION_END_DT ,A.COVERAGE_ELECT ,A.BENEFIT_PLAN ,B.EMPL_PCT FROM PS_RTRMNT_PLAN A ,PS_RTRMNT_PLAN_TBL B WHERE A.PLAN_TYPE = B.PLAN_TYPE AND A.BENEFIT_PLAN = B.BENEFIT_PLAN AND A.EFFDT = (SELECT MAX(C.EFFDT) FROM PS_RTRMNT_PLAN C WHERE C.EMPLID = A.EMPLID AND C.EMPL_RCD = A.EMPL_RCD AND C.PLAN_TYPE = A.PLAN_TYPE AND C.EFFDT<= %CURRENTDATEIN) AND B.EFFDT = (SELECT MAX(D.EFFDT) FROM PS_RTRMNT_PLAN_TBL D WHERE D.PLAN_TYPE = B.PLAN_TYPE AND D.BENEFIT_PLAN = B.BENEFIT_PLAN AND D.EFFDT <=A.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. |
4 | DEDUCTION_BEGIN_DT | Date(10) | DATE | Deduction Begin Date |
5 | DEDUCTION_END_DT | Date(10) | DATE | Deduction End Date |
6 | COVERAGE_ELECT | Character(1) | VARCHAR2(1) NOT NULL |
Coverage Election
E=Elect T=Terminate W=Waive |
7 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL |
Benefit Plan
Prompt Table: BEN_PROG_BENPLN |
8 | EMPL_PCT | Number(7,3) | DECIMAL(6,3) NOT NULL | Employee Contribution Percent |