JOBDATA_ESP_VW

(SQL View)
Index Back

Job Data ESP

Job Data ESP

SELECT A.EMPLID , A.EFFDT , A.EMPL_RCD , A.EFFSEQ , A.PER_ORG , A.DEPTID , A.JOBCODE , A.SETID_LOCATION , A.LOCATION , A.COMPANY , A.MATRICULA_NBR , A.SOC_SEC_RISK_CODE , A.LABOR_AGREEMENT , A.EMPL_CTG , A.EMPL_CTG_L1 , A.ESTABID , A.HIRE_DT , A.TERMINATION_DT , A.REG_TEMP , B.SSN_EMPLOYER , C.CONTRACT_NUM , C.CONTRACT_BEGIN_DT , C.CONTRACT_END_DT , C.CONTRCT_EXP_END_DT , C.SCHEME_ID_ESP , C.CONTRIB_ID_ESP , C.REG_REGION , D.CONTRACT_TYPE , C.SCHEME_ID_ESP %Concat %Substring(B.SSN_EMPLOYER, 1, 11) FROM PS_JOB A , PS_JOB_JR B , PS_CONTRACT_DATA C , PS_WKF_CNT_TYPE D WHERE A.EMPLID = B.EMPLID AND A.EFFDT = B.EFFDT AND A.EMPL_RCD = B.EMPL_RCD AND A.EFFSEQ = B.EFFSEQ AND A.EMPLID = C.EMPLID AND C.CONTRACT_NUM = A.CONTRACT_NUM AND D.CONTRACT_NUM = A.CONTRACT_NUM AND D.EMPLID = A.EMPLID AND D.EFFDT = ( SELECT MAX(ED.EFFDT) FROM PS_WKF_CNT_TYPE ED WHERE D.CONTRACT_NUM = ED.CONTRACT_NUM AND D.EMPLID = ED.EMPLID AND ED.EFFDT <= A.EFFDT)

# 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 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
5 PER_ORG Character(3) VARCHAR2(3) NOT NULL Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker
EMP=Employee
POI=Person of Interest
6 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

7 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code

Prompt Table: JOBCODE_TBL

8 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location SetID
9 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code

Prompt Table: LOCATION_TBL

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

Prompt Table: COMPANY_TBL

11 MATRICULA_NBR Number(5,0) INTEGER NOT NULL Matricula Number
12 SOC_SEC_RISK_CODE Character(3) VARCHAR2(3) NOT NULL Occupation Code
13 LABOR_AGREEMENT Character(6) VARCHAR2(6) NOT NULL Labor Agreement

Prompt Table: HR_LABOR_AGRMNT

14 EMPL_CTG Character(6) VARCHAR2(6) NOT NULL Employee Category
15 EMPL_CTG_L1 Character(6) VARCHAR2(6) NOT NULL Employee Subcategory
16 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID

Prompt Table: ESTAB_TBL

17 HIRE_DT Date(10) DATE First Start Date
18 TERMINATION_DT Date(10) DATE Termination Date
19 REG_TEMP Character(1) VARCHAR2(1) NOT NULL Regular/Temporary
R=Regular
T=Temporary
20 SSN_EMPLOYER Character(13) VARCHAR2(13) NOT NULL Employer Social Security number

Prompt Table: ALL_CCC_ESP_VW

21 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract Number
22 CONTRACT_BEGIN_DT Date(10) DATE Contract Begin Date
23 CONTRACT_END_DT Date(10) DATE Contract End Date
24 CONTRCT_EXP_END_DT Date(10) DATE Contract Expected End Date
25 SCHEME_ID_ESP Character(4) VARCHAR2(4) NOT NULL Scheme ID - ESP
26 CONTRIB_ID_ESP Character(5) VARCHAR2(5) NOT NULL Soc.Sec. Contribution ID - ESP
27 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region
28 CONTRACT_TYPE Character(3) VARCHAR2(3) NOT NULL Contract Type
29 SCHEME_CCC_ESP Character(15) VARCHAR2(15) NOT NULL Scheme ID + SSN Employer.