CO_LOCALPSD_VW(SQL View) |
Index Back |
---|---|
Company Local Tax ViewThis view is used to create a list PA EIT locality names which correspond to locality codes in the Company Local Tax Table. |
SELECT A.COMPANY , A.STATE , A.LOCALITY , A.EFFDT , A.EFF_STATUS , B.LOCALITY_NAME FROM PS_CO_LOCALTAX_TBL A , PS_LOCAL_TAX_TBL B WHERE A.STATE = 'PA' AND A.STATE = B.STATE AND A.LOCALITY = B.LOCALITY AND A.LOCALITY NOT LIKE 'I%' AND B.TAX_CLASS = 'H' AND B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_LOCAL_TAX_TBL C WHERE B.STATE = C.STATE AND B.LOCALITY = C.LOCALITY AND C.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL |
Company
Prompt Table: COMPANY_TBL |
2 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: CO_STATETAX_TBL |
3 | LOCALITY | Character(10) | VARCHAR2(10) NOT NULL |
Locality
Prompt Table: LOCAL_TAX_TBL |
4 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
5 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive Default Value: A |
6 | LOCALITY_NAME | Character(40) | VARCHAR2(40) NOT NULL | Locality Name |