CLS_TMPL_ESPVW

(SQL View)
Index Back

Contract by Template VW

This view is used to retrieve all contract printed with the same template

SELECT A.SETID , A.CNT_TEMPLT_ID_ESP , A.EFFDT , A.CNT_TEMPLT_CLS_ESP , B.DESCR50 FROM PS_CLS_BY_TMPL_ESP A , PS_CNT_CLS_ESPVW B WHERE A.CNT_TEMPLT_CLS_ESP = B.CNT_TEMPLT_CLS_ESP AND A.EFFDT = ( SELECT MAX(ED.EFFDT) FROM PS_CLS_BY_TMPL_ESP ED WHERE A.SETID = ED.SETID AND A.CNT_TEMPLT_ID_ESP = ED.CNT_TEMPLT_ID_ESP AND A.CNT_TEMPLT_CLS_ESP = ED.CNT_TEMPLT_CLS_ESP AND ED.EFFDT <= A.EFFDT)

# 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 CNT_TEMPLT_ID_ESP Character(11) VARCHAR2(11) NOT NULL SPEE Template ID
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 CNT_TEMPLT_CLS_ESP Character(3) VARCHAR2(3) NOT NULL SPEE Template Clause

Prompt Table: CNT_CLS_ESPVW

5 DESCR100 Character(100) VARCHAR2(100) NOT NULL Length 100 Description