GPGB_RSLT_RTO

(SQL View)
Index Back

Payslip View - Retro

UK Online Payslip View - Retro

SELECT DISTINCT A.EMPLID , A.CAL_RUN_ID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_ID , A.RSLT_SEG_NUM , 0 , A.PIN_NUM , ' ' , 0 , B.CAL_ID , B.RSLT_SEG_NUM , %Round(B.CALC_DELTA_VAL ,2) , %Round(B.UNIT_DELTA_VAL ,2) , %Round(B.BASE_DELTA_VAL ,2) , B.CURRENCY_CD , P.PIN_NM FROM PS_GP_RSLT_ERN_DED A , PS_GP_RSLT_DELTA B , PS_GP_PYE_SEG_STAT S , PS_GP_PIN P WHERE A.CAL_RUN_ID = B.FWD2_CAL_RUN_ID AND A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND A.GP_PAYGROUP = B.FWD2_PAYGROUP AND A.CAL_ID = B.FWD2_CAL_ID AND A.PIN_NUM = B.PIN_RTO_ADJ_NUM AND A.EMPLID = S.EMPLID AND A.EMPL_RCD = S.EMPL_RCD AND A.GP_PAYGROUP = S.GP_PAYGROUP AND A.CAL_ID = S.CAL_ID AND A.CAL_RUN_ID = S.CAL_RUN_ID AND A.RSLT_SEG_NUM = S.RSLT_SEG_NUM AND S.PYMT_KEY1 = B.PYMT_KEY1 AND S.PYMT_KEY2 = B.PYMT_KEY2 AND S.PYMT_KEY3 = B.PYMT_KEY3 AND S.PYMT_KEY4 = B.PYMT_KEY4 AND B.PIN_NUM = P.PIN_NUM GROUP BY A.EMPLID , A.CAL_RUN_ID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_ID , A.RSLT_SEG_NUM , A.PIN_NUM, B.CAL_ID , B.RSLT_SEG_NUM , B.CALC_DELTA_VAL , B.UNIT_DELTA_VAL , B.BASE_DELTA_VAL , B.CURRENCY_CD, P.PIN_NM

  • Parent record: GP_PYE_SEG_STAT
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    2 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
    3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
    4 GP_PAYGROUP Character(10) VARCHAR2(10) NOT NULL Global Payroll pay group
    5 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
    6 RSLT_SEG_NUM Number(4,0) SMALLINT NOT NULL Result Segment Number
    7 GPGB_ELE_ORDER Number(6,0) INTEGER NOT NULL Payslip Element Order
    8 GPGB_PIN_NUM_CUR Number(8,0) INTEGER NOT NULL Pin Number Current Value
    9 GPGB_PSLIP_DESCR Character(15) VARCHAR2(15) NOT NULL Payslip Description
    10 GPGB_VAL_CUR Signed Number(20,6) DECIMAL(18,6) NOT NULL Current Value
    11 SRC_CAL_ID Character(18) VARCHAR2(18) NOT NULL Source Calendar ID
    12 RSLT_SEG_NUM2 Number(4,0) SMALLINT NOT NULL Copy of field RSLT_SEG_NUM used when multiple segment (payment) numbers are needed joined into a single view
    13 GPGB_CALC_DELTA Signed Number(16,2) DECIMAL(14,2) NOT NULL Amount Delta
    14 GPGB_UNIT_DELTA Signed Number(16,2) DECIMAL(14,2) NOT NULL Unit Delta
    15 GPGB_BASE_DELTA Signed Number(16,2) DECIMAL(14,2) NOT NULL Base Delta
    16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    17 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field