GPTH_RPT_PD65_V

(SQL View)
Index Back

View for PD65 THA

View for Privilege Declaration Form for Taxpayer over 65 Years of Age, For P.N.D. 90 of Tax Year

SELECT A.EMPLID , A.CAL_RUN_ID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_ID , A.ORIG_CAL_RUN_ID , A.RSLT_SEG_NUM , A.GP_RPT_KEY , B.PIN_NUM , C3.PHONE_TYPE , B.INSTANCE , C1.NAME_PREFIX , C1.GPTH_NAME1 , C1.FIRST_NAME , C1.MIDDLE_NAME , C1.LAST_NAME , C3.BIRTHDATE , C3.COUNTRY_CODE , C3.PHONE , C3.EXTENSION , C3.GPTH_HOME_PHONE_TY , C3.HOME_PHONE , C3.GPTH_HOME_EXT , C3.NATIONAL_ID , C3.GPTH_PER_TAX_ID , A.MAR_STATUS , %Substring(E0.NATIONAL_ID,1,13) , %Substring(E0.GPTH_PER_TAX_ID,1,13) , E0.BIRTHDATE , E0.NAME_PREFIX , E0.GPTH_NAME1 , E0.FIRST_NAME , E0.LAST_NAME , A.PROCESS_INSTANCE , A.OFF_CYCLE , A.PRD_BGN_DT , A.PRD_END_DT , A.SEG_BGN_DT , A.SEG_END_DT , A.PYMT_DT , A.CAL_PRD_ID , A.COUNTRY , A.PIN_GROSS_VAL , A.PIN_NET_VAL , A.CURRENCY_CD , A.CUR_RT_TYPE , A.RUN_TYPE , A.PAY_ENTITY , A.BUSINESS_UNIT , A.COMPANY , A.ESTABID , A.SETID_DEPT , A.DEPTID , A.SETID_LOCATION , A.LOCATION , A.GPTH_GOV , B.ACM_FROM_DT , B.ACM_THRU_DT , B.SLICE_BGN_DT , B.SLICE_END_DT , %Round(B.CALC_RSLT_VAL ,2) , B.BASE_RSLT_VAL , B.RATE_RSLT_VAL , B.UNIT_RSLT_VAL , B.PCT_RSLT_VAL , B.RSLT_ADD_ARR , B.RSLT_NOT_TKN , B.RSLT_PAYBK , B.RSLT_XFER_VAL , B.BASE_ADJ_VAL , B.CALC_ADJ_VAL , B.UNIT_ADJ_VAL , B.USER_ADJ_VAL , B.USER_KEY1 , B.PIN_TYPE , B.PIN_NM , B.PIN_CODE , B.PIN_CUSTOM1 FROM PS_GPTH_RPT_G_VW A LEFT OUTER JOIN PS_GPTH_PERSON_NM C1 ON (A.EMPLID=C1.EMPLID AND A.PROCESS_INSTANCE=C1.PROCESS_INSTANCE) LEFT OUTER JOIN PS_GPTH_BENEF_VW0 E0 ON (A.EMPLID=E0.EMPLID AND A.PROCESS_INSTANCE=E0.PROCESS_INSTANCE) , PS_GPTH_RPT_D_VW B , PS_GPTH_PERSON_VW C3 WHERE A.PROCESS_INSTANCE = B.PROCESS_INSTANCE AND A.EMPLID = B.EMPLID AND A.CAL_RUN_ID = B.CAL_RUN_ID AND A.EMPL_RCD = B.EMPL_RCD AND A.GP_PAYGROUP = B.GP_PAYGROUP AND A.CAL_ID = B.CAL_ID AND A.ORIG_CAL_RUN_ID = B.ORIG_CAL_RUN_ID AND A.RSLT_SEG_NUM = B.RSLT_SEG_NUM AND A.GP_RPT_KEY = B.GP_RPT_KEY AND A.EMPLID=C3.EMPLID AND B.CALC_RSLT_VAL > 0

# 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 Record
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 ORIG_CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Original Calendar Group ID
7 RSLT_SEG_NUM Number(4,0) SMALLINT NOT NULL Result Segment Number
8 GP_RPT_KEY Character(22) VARCHAR2(22) NOT NULL Output Result Key
9 PIN_NUM Number(8,0) INTEGER NOT NULL PIN Number
10 PHONE_TYPE Character(4) VARCHAR2(4) NOT NULL Phone Type
BUSN=Business
CAMP=Campus
CELL=Mobile
DORM=Dormitory
FAX=FAX
HOME=Home
MAIN=Main
OTR=Other
PGR1=Pager 1
PGR2=Pager 2
TELX=Telex
WORK=Work
11 INSTANCE Number(3,0) SMALLINT NOT NULL Instance Number
12 NAME_PREFIX Character(4) VARCHAR2(4) NOT NULL Name Prefix
13 GPTH_NAME1 Character(80) VARCHAR2(80) NOT NULL Tax-Payee's First Name
14 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
15 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
16 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
17 BIRTHDATE Date(10) DATE Date of Birth
18 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Country Code
19 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
20 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone number extension
21 GPTH_HOME_PHONE_TY Character(4) VARCHAR2(4) NOT NULL Phone Type
22 HOME_PHONE Character(24) VARCHAR2(24) NOT NULL Home Phone #
23 GPTH_HOME_EXT Character(6) VARCHAR2(6) NOT NULL Phone number extension
24 NATIONAL_ID Character(20) VARCHAR2(20) NOT NULL National ID
25 GPTH_PER_TAX_ID Character(20) VARCHAR2(20) NOT NULL Person Tax ID
26 MAR_STATUS Character(1) VARCHAR2(1) NOT NULL Marital Status
C=Common-Law
D=Divorced
E=Separated
H=Head of Household
L=DissDeclLost Civil Partner
M=Married
P=Civil Partnership
S=Single
T=Surviving Civil Partner
U=Unknown
V=Dissolved Civil Partnership
W=Widowed
27 GPTH_SPIN Character(13) VARCHAR2(13) NOT NULL National ID of Spouse
28 GPTH_STIN Character(13) VARCHAR2(13) NOT NULL Tax ID No of Spouse
29 GPTH_SP_BIRTHDATE Date(10) DATE Spouse's Birthdate
30 GPTH_SPREFIX Character(10) VARCHAR2(10) NOT NULL Spouse Name Prefix
31 GPTH_NAME2 Character(80) VARCHAR2(80) NOT NULL Tax-Payee's First Name
32 GPTH_SPO_FIRSTNAME Character(30) VARCHAR2(30) NOT NULL Spouse's First Name
33 GPTH_SPO_LASTNAME Character(30) VARCHAR2(30) NOT NULL Spouse's Last Name
34 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
35 OFF_CYCLE Character(1) VARCHAR2(1) NOT NULL Off Cycle ?
36 PRD_BGN_DT Date(10) DATE Period Begin Date
37 PRD_END_DT Date(10) DATE Pay Period End Date
38 SEG_BGN_DT Date(10) DATE Payee Process Segment's Begin Date
39 SEG_END_DT Date(10) DATE Payee Process Segment's End Date
40 PYMT_DT Date(10) DATE Payment Date
41 CAL_PRD_ID Character(10) VARCHAR2(10) NOT NULL Calendar Period ID
42 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
43 PIN_GROSS_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Gross Pay Value
44 PIN_NET_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Net Pay Value
45 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
46 CUR_RT_TYPE Character(5) VARCHAR2(5) NOT NULL Currency Rate Type
47 RUN_TYPE Character(10) VARCHAR2(10) NOT NULL Run Type Name
48 PAY_ENTITY Character(10) VARCHAR2(10) NOT NULL Pay Entity
49 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
50 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
51 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
52 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
53 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
54 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location Set ID
55 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
56 GPTH_GOV Character(1) VARCHAR2(1) NOT NULL This field represents that if the report is an Government report
57 ACM_FROM_DT Date(10) DATE From Date
58 ACM_THRU_DT Date(10) DATE Through Date
59 SLICE_BGN_DT Date(10) DATE Element Slice Begin Date
60 SLICE_END_DT Date(10) DATE Element Slice End Date
61 CALC_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculation Numeric Result
62 BASE_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculated Base Value
63 RATE_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value
64 UNIT_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Number of units used in result calculation
65 PCT_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Percent Result Value
66 RSLT_ADD_ARR Signed Number(20,6) DECIMAL(18,6) NOT NULL Amount Added To Arrears
67 RSLT_NOT_TKN Signed Number(20,6) DECIMAL(18,6) NOT NULL Amount Not Taken
68 RSLT_PAYBK Signed Number(20,6) DECIMAL(18,6) NOT NULL Payback Amount Result
69 RSLT_XFER_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Bank Transfer Value of Deduct
70 BASE_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Base Adjustment
71 CALC_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculation Adjustment Value
72 UNIT_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Unit Adjustment
73 USER_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL User Adjustment Value
74 USER_KEY1 Character(25) VARCHAR2(25) NOT NULL User Key 1
75 PIN_TYPE Character(2) VARCHAR2(2) NOT NULL Element Type
76 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field
77 PIN_CODE Character(22) VARCHAR2(22) NOT NULL Unique identifier of a PIN (alternate to PIN number). critical for use in merging packages of elements from one database onto another when PINs may or may not be renumbered as they are moved across. Constructed from PIN_NM + COUNTRY of the element definition (GP_PIN)
78 PIN_CUSTOM1 Character(20) VARCHAR2(20) NOT NULL Customer FIelds