WKF_CT_ET_ESPVW(SQL View) |
Index Back |
---|---|
Contract Info ViewSpanish details of the employment contract the employee is work |
SELECT A.EMPLID , A.CONTRACT_NUM , A.EFFDT , A.EFFSEQ , ' ' , A.CNT_BGN_DT_ESP , B.NATIONAL_ID_TYPE , CASE WHEN B.NATIONAL_ID_TYPE = 'DNI' THEN 'D' %Concat B.NATIONAL_ID ELSE 'E' %Concat B.NATIONAL_ID END FROM PS_WKF_CNT_TYP_ESP A ,PS_PERS_NID B WHERE A.EMPLID = B.EMPLID AND B.COUNTRY = 'ESP' AND (B.NATIONAL_ID_TYPE = 'DNI' OR B.NATIONAL_ID_TYPE = 'NIE') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract Number |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
4 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
5 | CONTRACT_ID_ESP | Character(18) | VARCHAR2(18) NOT NULL |
Contract ID assigned by the Employment Agency
C=Company E=Employee N=None S=SS Contribution Center |
6 | CNT_BGN_DT_ESP | Date(10) | DATE | Contract Begin Dt |
7 | NATIONAL_ID_TYPE | Character(6) | VARCHAR2(6) NOT NULL | National ID Type |
8 | NATIONAL_ID | Character(20) | VARCHAR2(20) NOT NULL | National ID |