ANX_BY_TMPL_VW(SQL View) |
Index Back |
---|---|
Contract by Template VWThis view is used to retrieve all contract printed with the same template |
SELECT A.SETID , A.CONTRACT_TYPE , A.CNT_TEMPLT_ID_ESP , A.EFFDT , B.DESCR100 FROM PS_CNT_BY_TMPL_ESP A , PS_CNT_TEMPLT_ESP B WHERE A.CNT_TEMPLT_ID_ESP = B.CNT_TEMPLT_ID_ESP AND A.SETID = B.SETID AND B.EFFDT = ( SELECT MAX(ED.EFFDT) FROM PS_CNT_TEMPLT_ESP ED WHERE A.SETID = ED.SETID AND A.CNT_TEMPLT_ID_ESP = ED.CNT_TEMPLT_ID_ESP AND ED.EFFDT <= A.EFFDT) AND A.SETID = 'ESP' AND B.CNT_TEMPL_TYPE_ESP = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: ESP Prompt Table: SET_VLD_HR_09 |
2 | CONTRACT_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Contract Type
Prompt Table: PERS_CNTRCT_TYP |
3 | CNT_TEMPLT_ID_ESP | Character(11) | VARCHAR2(11) NOT NULL | SPEE Template ID |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | DESCR100 | Character(100) | VARCHAR2(100) NOT NULL | Length 100 Description |