GPJP_IT_DEP_VW

(SQL View)
Index Back

Dependent Deduction Data

SQL view that joins GPJP_IT_DEP_TAX and DEP_BEN

SELECT A.EMPLID , A.DEPENDENT_BENEF , A.EFFDT , A.EMPL_RCD , A.GPJP_IT_SUBJ_DED , A.GPJP_PARENT_LWP , A.GPJP_IT_DEPDIS , B.BIRTHDATE , B.DT_OF_DEATH , C.RELATIONSHIP , A.GPJP_DEP_INC , A.GPJP_NO_RSDNT_RLTV FROM PS_GPJP_IT_DEP_TAX A , PS_DEP_BEN B , PS_DEP_BEN_EFF C WHERE A.EMPLID = B.EMPLID AND A.EMPLID = C.EMPLID AND A.DEPENDENT_BENEF = B.DEPENDENT_BENEF AND A.DEPENDENT_BENEF = C.DEPENDENT_BENEF AND C.EFFDT = ( SELECT MAX(C_ED.EFFDT) FROM PS_DEP_BEN_EFF C_ED WHERE C_ED.EMPLID = C.EMPLID AND C_ED.DEPENDENT_BENEF = C.DEPENDENT_BENEF AND C_ED.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 DEPENDENT_BENEF Character(2) VARCHAR2(2) NOT NULL Dependent Benefit
01=default
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
5 GPJP_IT_SUBJ_DED Character(1) VARCHAR2(1) NOT NULL Dependent Subjected to Deduction Flag
6 GPJP_PARENT_LWP Character(1) VARCHAR2(1) NOT NULL Parent Living with Payee
7 GPJP_IT_DEPDIS Character(2) VARCHAR2(2) NOT NULL Used in Dependent Tax Data.
10=No Disability
20=Disabled
30=Special Disability
40=Living with Special Disabled
8 BIRTHDATE Date(10) DATE Date of Birth
9 DT_OF_DEATH Date(10) DATE Date of Death
10 RELATIONSHIP Character(2) VARCHAR2(2) NOT NULL Relationship to Employee
11 GPJP_DEP_INC Signed Number(20,6) DECIMAL(18,6) NOT NULL Dependent Annual Income
12 GPJP_NO_RSDNT_RLTV Character(1) VARCHAR2(1) NOT NULL Non-Resident Relative indicator