PY_MOD_BDD_SSVW

(SQL View)
Index Back

Paychk Mod BenProg Dedns

This view is used to show the latest benefit deductions by company/paygroup

SELECT DISTINCT A.COMPANY , A.PAYGROUP , A.BENEFIT_PROGRAM , A.DEDCD , A.PLAN_TYPE , A.BENEFIT_PLAN , B.DESCR FROM PS_PY_MOD_PGRP_DED A , PS_DEDUCTION_TBL B WHERE A.PLAN_TYPE <> '00' AND B.PLAN_TYPE = A.PLAN_TYPE AND B.DEDCD = A.DEDCD AND B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_DEDUCTION_TBL B_ED WHERE B.PLAN_TYPE = B_ED.PLAN_TYPE AND B.DEDCD = B_ED.DEDCD AND B_ED.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
2 PAYGROUP Character(3) VARCHAR2(3) NOT NULL Pay Group
3 BENEFIT_PROGRAM Character(3) VARCHAR2(3) NOT NULL Defines a collection of benefit plans and their associated rate and calculation rules.
4 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
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 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
7 DESCR Character(30) VARCHAR2(30) NOT NULL Description