BEN_PROG_BN_LNG(SQL View) |
Index Back |
---|---|
Current Deductions in Ben ProgThis view is used to show all deductions in the currently active benefit program. |
SELECT DISTINCT A.Benefit_Program ,A.EffDt ,B.Plan_Type ,B.Benefit_Plan ,B.Dedcd ,C.LANGUAGE_CD ,C.Descr ,C.Descrshort FROM PS_BEN_DEFN_PGM A , PS_Ben_Defn_Optn B , PS_Deduction_LANG C WHERE A.Benefit_Program = B.Benefit_Program AND A.Effdt = B.Effdt AND A.Eff_Status = 'A' AND C.Plan_Type = B.Plan_Type AND C.Dedcd = B.Dedcd AND C.EffDt = ( SELECT MAX(D.EffDt) FROM PS_Deduction_Tbl D WHERE D.Plan_Type = C.Plan_Type AND D.Dedcd = C.Dedcd AND D.EffDt <= A.EffDt) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BENEFIT_PROGRAM | Character(3) | VARCHAR2(3) NOT NULL | Defines a collection of benefit plans and their associated rate and calculation rules. |
2 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
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 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL |
Benefit Plan
Prompt Table: BENEF_PLAN_TBL |
5 | DEDCD | Character(6) | VARCHAR2(6) NOT NULL | Deduction Code |
6 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
7 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
8 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |