GPUS_YE_EE0_VW

(SQL View)
Index Back

Year End Employee Data View

Year End Employee Data View

SELECT DISTINCT A.EMPLID ,A.GPUS_CAL_YEAR ,A.GPUS_TAXFORM_ID ,CO.GPUS_YE_RPT_CO ,CO.GPUS_TAX_EIN ,B.NAME ,CO.EFFDT ,A.GPUS_YE_STATUS ,A.LAST_UPDT_DTTM ,A.LAST_UPDT_OPRID FROM PS_GPUS_YE_EE A , PS_GPUS_YE_CO_TBL CO ,PS_PERSON_NAME B WHERE EXISTS ( SELECT 'X' FROM PS_GPUS_YE_CO_EIN EIN WHERE CO.GPUS_YE_RPT_CO = EIN.GPUS_YE_RPT_CO AND A.GPUS_TAX_EIN = EIN.GPUS_TAX_EIN AND CO.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_GPUS_YE_CO_TBL C WHERE C.GPUS_YE_RPT_CO = CO.GPUS_YE_RPT_CO AND C.EFFDT <= %DateIn(%NumToChar(A.GPUS_CAL_YEAR) %Concat '-12-31')) AND EIN.EFFDT = CO.EFFDT AND A.EMPLID = B.EMPLID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: GP_PERS_SRCH

2 GPUS_CAL_YEAR Number(4,0) SMALLINT NOT NULL Calendar Year
3 GPUS_TAXFORM_ID Character(3) VARCHAR2(3) NOT NULL Tax Form ID
10=W-2
110=W-2c
120=W-2cAS
130=W-2cGU
140=W-2cPR
150=W-2cVI
20=W-2AS
30=W-2GU
40=W-2PR
50=W-2VI
4 GPUS_YE_RPT_CO Character(3) VARCHAR2(3) NOT NULL Year-End Reporting Company

Prompt Table: GPUS_RPT_CO_VW

5 GPUS_TAX_EIN Character(9) VARCHAR2(9) NOT NULL Federal Employer Identification Number

Prompt Table: GPUS_DEF_EIN_VW

6 NAME Character(50) VARCHAR2(50) NOT NULL Name
7 EFFDT Date(10) DATE Effective Date

Default Value: %date

8 GPUS_YE_STATUS Character(2) VARCHAR2(2) NOT NULL Year-End Status Flag
10=Complete
20=Void
30=W-2c Issued
9 LAST_UPDT_DTTM DateTime(26) TIMESTAMP Last Updated Date-Time Stamp
10 LAST_UPDT_OPRID Character(30) VARCHAR2(30) NOT NULL Last Updated User Name