GPUS_W4_CO_VW

(SQL View)
Index Back

Companies for W-4

View used in order to prompt on companies the employee is hired or active for the W-4 tax Information.

SELECT DISTINCT A.EMPLID , A.COMPANY , ' ' , 0 , 0 , ' ' , A.EMPL_RCD FROM PS_JOB A WHERE A.HR_STATUS='A' AND A.EFFDT = ( SELECT MAX(A2.EFFDT) FROM PS_JOB A2 WHERE A2.EMPLID=A.EMPLID AND A2.EMPL_RCD=A.EMPL_RCD AND A2.COMPANY=A.COMPANY) AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_JOB A2 WHERE A2.EMPLID=A.EMPLID AND A2.EMPL_RCD=A.EMPL_RCD AND A2.COMPANY=A.COMPANY AND A2.EFFDT=A.EFFDT )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
3 GPUS_FWT_MAR_ST Character(1) VARCHAR2(1) NOT NULL Tax Marital Status
H=Head of Household
M=Married
S=Single
W=Married/Withhold Single
W=Married/Withhold Single
4 GPUS_FWT_ALLOW Number(3,0) SMALLINT NOT NULL Withholding Allowances
5 GPUS_FWT_ADD_AMT Number(19,6) DECIMAL(18,6) NOT NULL Additional Amount
6 GPUS_FWT_STATUS Character(1) VARCHAR2(1) NOT NULL Tax Withholding Status
E=No taxable gross; no tax taken
G=Maintain taxable gross; no FWT
N=None
7 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record