PY_MOD_DEDCT_VW

(SQL View)
Index Back

Paychk Mod Company Deductions

This view combines PY_MOD_PGRP_ERN and DEDUCTIONS_TBL.

SELECT DISTINCT a.plan_type , a.dedcd , a.ded_class , a.descr , b.spcl_process FROM PS_PY_MOD_PGRP_DED a , ps_deduction_tbl b WHERE a.plan_type = b.plan_type AND a.dedcd = b.dedcd UNION SELECT DISTINCT a.plan_type , a.dedcd , b.ded_class , a.descr , a.spcl_process FROM ps_deduction_tbl a , ps_deduction_class b WHERE a.effdt = ( SELECT MAX(B_ED.EFFDT) FROM PS_DEDUCTION_TBL B_ED WHERE a.plan_type = B_ED.PLAN_TYPE AND a.dedcd = B_ED.DEDCD AND B_ED.EFFDT <= %CurrentDateIn) AND a.plan_type = b.plan_type AND a.dedcd = b.dedcd AND b.ded_class IN('A', 'B') AND NOT EXISTS ( SELECT 'Y' FROM PS_PY_MOD_PGRP_DED c WHERE c.plan_type = a.plan_type AND c.dedcd = a.dedcd)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 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.
2 DEDCD Character(6) VARCHAR2(6) NOT NULL Deduction Code
3 DED_CLASS Character(1) VARCHAR2(1) NOT NULL Deduction Classification
A=After-Tax
B=Before-Tax
L=QC Taxable Benefit
N=Nontaxable Benefit
P=Nontaxable Btax Benefit
T=Taxable Benefit
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 SPCL_PROCESS Character(1) VARCHAR2(1) NOT NULL Special Process
B=Bond
G=Garnishment
U=Union Dues