PY_TD1_CURR_VW

(SQL View)
Index Back

Tax Data Current Information

Current Information for the Federal and State Tax Data. By Company and by Employee

SELECT A.EMPLID , A.COMPANY , A.EFFDT , '$C' , 'Federal' FROM PS_CAN_TAX_DATA A WHERE %EffdtCheck(CAN_TAX_DATA A1, A, %CurrentDateIn) UNION ALL SELECT A2.EMPLID , A2.COMPANY , A2.EFFDT , A2.PROVINCE , C.DESCR FROM PS_CAN_TAX_PRVDATA A2 , PS_STATE_TBL C WHERE A2.PROVINCE=C.STATE AND %EffdtCheck(CAN_TAX_PRVDATA A3, A2, %CurrentDateIn) UNION ALL SELECT A.EMPLID , A.COMPANY , A.EFFDT , 'QC' , 'Quebec' FROM PS_CAN_TAX_DATA A WHERE %EffdtCheck(CAN_TAX_DATA A1, A, %CurrentDateIn)

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

Prompt Table: PERSON

2 COMPANY Character(3) VARCHAR2(3) NOT NULL Company

Prompt Table: COMPANY_TBL

3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: PY_STATETAX_VW

5 STATE_DESCR Character(30) VARCHAR2(30) NOT NULL State Description