LCL_TAX_LOC_VW

(SQL View)
Index Back

Selects SpecificTax Localities

for W2 Processing in the MMREF-1 format.

SELECT A.STATE ,A.LOCALITY ,A.W2_RPTG_AGENCY ,A.W2_MAG_CODE ,A.EE_DTL_REQUIRED FROM PS_LOCAL_TAX_TBL2 A WHERE A.W2_RPTG_AGENCY <> ' ' AND A.EFFDT=( SELECT MAX(EFFDT) FROM PS_LOCAL_TAX_TBL2 B WHERE A.LOCALITY = B.LOCALITY AND A.STATE=B.STATE AND A.W2_RPTG_AGENCY = B.W2_RPTG_AGENCY)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 STATE Character(6) VARCHAR2(6) NOT NULL State
2 LOCALITY Character(10) VARCHAR2(10) NOT NULL Locality
3 W2_RPTG_AGENCY Character(5) VARCHAR2(5) NOT NULL W2 Reporting Agency
4 W2_MAG_CODE Character(5) VARCHAR2(5) NOT NULL W2 Magnetic Media Code
5 EE_DTL_REQUIRED Character(1) VARCHAR2(1) NOT NULL Employee Detail Required