GPCH_UV_DATA_VW

(SQL View)
Index Back

View for GPCH_UV_DATA

View for GPCH_UV_DATA

SELECT A.EMPLID , A.EMPL_RCD , B.EFFDT , A.EFFSEQ , A.COMPANY , B.GPCH_TX_UV_PROV_CD FROM PS_JOB A , PS_GPCH_SI_ACC_INS B WHERE A.COMPANY = B.COMPANY AND B.GPCH_SI_PROV_TYPE = '2' AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_JOB C WHERE C.EMPLID = A.EMPLID AND C.EMPL_RCD = A.EMPL_RCD AND C.COMPANY=A.COMPANY) AND A.EFFSEQ = ( SELECT MAX(D.EFFSEQ) FROM PS_JOB D WHERE D.EMPLID = A.EMPLID AND D.EMPL_RCD = A.EMPL_RCD AND D.COMPANY=A.COMPANY AND D.EFFDT = A.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
5 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
6 GPCH_TX_UV_PROV_CD Character(6) VARCHAR2(6) NOT NULL Accident Insurance Provider