CNT_PREV_ESP_VW(SQL View) |
Index Back |
---|---|
Previous Contract Data ESPPrevious Data related with Employee Contract. |
SELECT A.EMPLID , A.CONTRACT_NUM , A.EFFDT , B.CNT_ACTION_ESP , B.CONTRACT_TYPE , B.CNT_BGN_DT_ESP , B.CONTRACT_ID_ESP , B.CNT_INEM_DT_ESP , B.HIRE_CTR_CD_ESP FROM PS_WKF_CNT_TYP_ESP A , PS_WKF_CNT_TYP_ESP B WHERE A.EMPLID = B.EMPLID AND A.CONTRACT_NUM = B.CONTRACT_NUM AND B.EFFDT = ( SELECT MAX (ED.EFFDT) FROM PS_WKF_CNT_TYP_ESP ED WHERE A.EMPLID = ED.EMPLID AND A.CONTRACT_NUM = ED.CONTRACT_NUM AND ED.EFFDT < A.EFFDT AND ED.CNT_ACTION_ESP = '001') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
2 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract Number |
3 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
4 | CNT_ACTION_ESP | Character(3) | VARCHAR2(3) NOT NULL |
Contract Action
001=New Contract 002=Termination 003=Extension 004=Calling 005=End Calling 006=Calling 007=Remote Working Agreement Default Value: 001 |
5 | CONTRACT_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Contract Type
Default Value: 100 Prompt Table: CNT_TYPE_VW_ESP |
6 | CNT_BGN_DT_ESP | Date(10) | DATE | Contract Begin Dt |
7 | 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 |
8 | CNT_INEM_DT_ESP | Date(10) | DATE | SEPE Registration Date |
9 | HIRE_CTR_CD_ESP | Character(3) | VARCHAR2(3) NOT NULL |
Hiring Center
Prompt Table: HIRING_CTR_ESP |