PA_I_RESULTS_VW

(SQL View)
Index Back

Web Calc Results control view


SELECT A.EMPLID , A.CALC_NAME , B.BENEFIT_PLAN , C.PROC_EXEC_ORD_NUM , C.PROC_NAME , C.FUNCTN_NAME , C.DESCR , D.FLD_NAME , D.FLD_TYPE FROM PS_PA_CALCULATION A , PS_PA_SUMMARY_PLAN B , PS_PA_PROC_USE C , PS_PA_FUNCTN_FLD_1 D WHERE A.CALCULATION_TYPE = 'I' AND A.CALC_REASON = 'WEB' AND B.CALC_NAME = A.CALC_NAME AND B.EMPLID = A.EMPLID AND C.BENEFIT_PLAN = B.BENEFIT_PLAN AND C.EFFDT = (SELECT MAX(D.EFFDT) FROM PS_PA_PROC_USE D WHERE D.BENEFIT_PLAN = C.BENEFIT_PLAN AND D.EFFDT <= A.ASOFDATE) AND D.FUNCTN_NAME = C.FUNCTN_NAME AND D.FLD_NAME IN ('PARTICIPATION_DATE', 'SERVICE_AMOUNT', 'VESTING_PERCENT', 'FAE_AMOUNT', 'ACCUM_AMT', 'EE_BEN_AMT', 'PIA_ADJ_AMT', 'COMP_AMT', 'ADJ_FACTOR', 'BEN_AMT') AND (EXISTS (SELECT 'X' FROM PS_PA_CLC_VAL_DEC F WHERE F.BENEFIT_PLAN = B.BENEFIT_PLAN AND F.CALC_NAME = A.CALC_NAME AND F.FUNCTN_RESULT_NM = C.PROC_NAME AND F.FLD_VAL_DEC_NOVRD <> 0 AND F.FLD_NAME = D.FLD_NAME) OR EXISTS (SELECT 'X' FROM PS_PA_CLC_VAL_DT F WHERE F.BENEFIT_PLAN = B.BENEFIT_PLAN AND F.CALC_NAME = A.CALC_NAME AND F.FUNCTN_RESULT_NM = C.PROC_NAME AND F.FLD_VAL_DT_NOVRD IS NOT NULL AND F.FLD_NAME = D.FLD_NAME))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 CALC_NAME Character(20) VARCHAR2(20) NOT NULL Calculation Name
3 BENEFIT_PLAN Character(6) VARCHAR2(6) NOT NULL Benefit Plan
4 PROC_EXEC_ORD_NUM Number(3,0) SMALLINT NOT NULL Process Execution Order Number
5 PROC_NAME Character(10) VARCHAR2(10) NOT NULL Process Name
6 FUNCTN_NAME Character(10) VARCHAR2(10) NOT NULL Function Name
7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
8 FLD_NAME Character(18) VARCHAR2(18) NOT NULL Field Name
9 FLD_TYPE Character(1) VARCHAR2(1) NOT NULL Field Type