GPCH_GL_E1AC_VW

(SQL View)
Index Back

Details of selected account

Details of selected account for selected type (debit / credit).

SELECT G.ACCOUNT , G.DESCR , G.CAL_RUN_ID , G.GROUPING_CODE ,G1.EMPLID ,N.NAME ,G1.CAL_ID ,G.HPYP_CC_ID ,P.PIN_NM , P.DESCR ,G.PIN_CHART1_VAL ,G.PIN_CHART2_VAL ,G.PIN_CHART3_VAL ,G.PIN_CHART4_VAL ,G.PIN_CHART5_VAL ,G.PIN_CHART6_VAL ,G.PIN_CHART7_VAL ,G.PIN_CHART8_VAL ,G.GPCH_RP_AMOUNT1 ,G.GPCH_RP_AMOUNT2 , SUM(G1.CALC_RSLT_VAL) FROM PS_GPCH_GL_E1SH_VW G , PS_GP_GL_DATA G1 ,PS_NAMES N ,PS_GP_PIN P WHERE G.ACCOUNT = G1.ACCOUNT AND G.CAL_RUN_ID = G1.CAL_RUN_ID AND G.GROUPING_CODE = G1.GROUPING_CODE AND G.PIN_CHART1_VAL = G1.PIN_CHART1_VAL AND G.PIN_CHART2_VAL = G1.PIN_CHART2_VAL AND G.PIN_CHART3_VAL = G1.PIN_CHART3_VAL AND G.PIN_CHART4_VAL = G1.PIN_CHART4_VAL AND G.PIN_CHART5_VAL = G1.PIN_CHART5_VAL AND G.PIN_CHART6_VAL = G1.PIN_CHART6_VAL AND G.PIN_CHART7_VAL = G1.PIN_CHART7_VAL AND G.PIN_CHART8_VAL = G1.PIN_CHART8_VAL AND G1.PIN_NUM = P.PIN_NUM AND G1.EMPLID = N.EMPLID AND N.NAME_TYPE = 'PRI' AND N.EFFDT = ( SELECT MAX(N1.EFFDT) FROM PS_NAMES N1 WHERE N.EMPLID = N1.EMPLID AND N.NAME_TYPE = N1.NAME_TYPE ) GROUP BY G.ACCOUNT, G.DESCR, G.CAL_RUN_ID ,G.GROUPING_CODE,G1.EMPLID ,N.NAME ,G1.CAL_ID,G.HPYP_CC_ID,P.PIN_NM , P.DESCR, G.PIN_CHART1_VAL ,G.PIN_CHART2_VAL ,G.PIN_CHART3_VAL ,G.PIN_CHART4_VAL ,G.PIN_CHART5_VAL ,G.PIN_CHART6_VAL ,G.PIN_CHART7_VAL ,G.PIN_CHART8_VAL ,G.GPCH_RP_AMOUNT1 ,G.GPCH_RP_AMOUNT2 HAVING SUM(G1.CALC_RSLT_VAL) <> 0.00

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
2 DESCR Character(30) VARCHAR2(30) NOT NULL Description
3 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
4 GROUPING_CODE Character(15) VARCHAR2(15) NOT NULL Identifier (name) used to group a number of elements (earnings or deductions) that can be treated equally (posted to the same account) for GL purposes.
5 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
6 NAME Character(50) VARCHAR2(50) NOT NULL Name
7 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
8 HPYP_CC_ID Character(12) VARCHAR2(12) NOT NULL Cost Center ID.
9 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field
10 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr
11 PIN_CHART1_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
12 PIN_CHART2_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
13 PIN_CHART3_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value`
14 PIN_CHART4_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
15 PIN_CHART5_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
16 PIN_CHART6_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
17 PIN_CHART7_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
18 PIN_CHART8_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
19 GPCH_RP_AMOUNT1 Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value
20 GPCH_RP_AMOUNT2 Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value
21 CALC_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculation Numeric Result