COMPDATA_ESP_VW(SQL View) |
Index Back |
---|---|
Company DataCompany Data |
SELECT JOB.EMPLID , JOB.EFFDT , A.COMPANY , A.EFF_STATUS , A.DESCR , A.COUNTRY , A.ADDRESS1 , A.ADDRESS2 , A.CITY , A.NUM1 , A.NUM2 , A.ADDR_FIELD1 , A.ADDR_FIELD2 , A.ADDR_FIELD3 , A.STATE , A.POSTAL , A.FISCAL_ID_CD , B.PHONE_TYPE , B.COUNTRY_CODE , B.PHONE , C.INSUR_COMP_CD_ESP , D.SSN_EMPLOYER , D.ESTABID , D.SSN_EMPL_TYPE , D.INDSTRY_CD_ESP , D.SCHEME_ID_ESP , E.DLT_PREVENTIVA_ESP FROM PS_COMPANY_TBL A , PS_COMP_PHONE_TBL B , PS_ESTAB_TBL C , PS_ESTAB_SSEC_ESP D , PS_SOCS_SETHD_ESP E , PS_JOBDATA_ESP_VW JOB WHERE JOB.COMPANY = A.COMPANY AND JOB.SSN_EMPLOYER = D.SSN_EMPLOYER AND B.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_COMP_PHONE_TBL A_ED WHERE B.COMPANY = A_ED.COMPANY AND A_ED.EFFDT <= %CurrentDateIn) AND B.COMPANY = C.COMPANY AND C.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_ESTAB_TBL B_ED WHERE C.ESTABID = B_ED.ESTABID AND B_ED.EFFDT <= %CurrentDateIn) AND B.COMPANY = A.COMPANY AND A.EFFDT = ( SELECT MAX(C_ED.EFFDT) FROM PS_COMPANY_TBL C_ED WHERE A.COMPANY = C_ED.COMPANY AND C_ED.EFFDT <= %CurrentDateIn) AND C.ESTABID = D.ESTABID AND C.EFFDT = D.EFFDT AND A.COMPANY = E.COMPANY AND E.EFFDT = ( SELECT MAX(E_ED.EFFDT) FROM PS_SOCS_SETHD_ESP E_ED WHERE A.COMPANY = E_ED.COMPANY AND E_ED.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
3 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
7 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
8 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
9 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
10 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
11 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
12 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
13 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
14 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
15 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
16 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
17 | FISCAL_ID_CD | Character(10) | VARCHAR2(10) NOT NULL | Fiscal Identification Code |
18 | PHONE_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Phone Type
BUSN=Business CAMP=Campus CELL=Mobile DORM=Dormitory FAX=FAX HOME=Home MAIN=Main OTR=Other PGR1=Pager 1 PGR2=Pager 2 TELX=Telex WORK=Work |
19 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Country Code |
20 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
21 | INSUR_COMP_CD_ESP | Character(5) | VARCHAR2(5) NOT NULL | Insurance Company Code |
22 | SSN_EMPLOYER | Character(13) | VARCHAR2(13) NOT NULL | Employer Social Security number |
23 | ESTABID | Character(12) | VARCHAR2(12) NOT NULL | Establishment ID |
24 | SSN_EMPL_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Social Security Number Type
1=Regular 2=Apprenticeship 3=Training |
25 | INDSTRY_CD_ESP | Character(5) | VARCHAR2(5) NOT NULL | Industry Activity Code |
26 | SCHEME_ID_ESP | Character(4) | VARCHAR2(4) NOT NULL | Scheme ID - ESP |
27 | DLT_PREVENTIVA_ESP | Character(1) | VARCHAR2(1) NOT NULL |
Preventive
A=Business Owner E=External I=Internal M=Shared N=None W=Designed Workers |