E_CIA_ITA_VW

(SQL View)
Index Back

Employee CIA Codes View

Employee CIA Codes View

SELECT DISTINCT JOB.EMPLID , JOB.EMPL_RCD , JOB.EFFDT , CIA.CIA_CODE_ITA , JOB.COMPANY , JOB.ESTABID FROM PS_JOB JOB , PS_CIA_COMP_ITA CIA WHERE JOB.COMPANY = CIA.COMPANY AND (JOB.ESTABID = CIA.ESTABID OR CIA.ESTABID = ' ') AND JOB.EFFDT = ( SELECT MAX(JOB2.EFFDT) FROM PS_JOB JOB2 WHERE JOB.EMPLID=JOB2.EMPLID AND JOB2.EFFDT<=JOB.EFFDT) AND JOB.EFFSEQ = ( SELECT MAX(JOB2.EFFSEQ) FROM PS_JOB JOB2 WHERE JOB.EMPLID=JOB2.EMPLID AND JOB2.EFFDT<=JOB.EFFDT) AND CIA.EFFDT = ( SELECT MAX(CIA2.EFFDT) FROM PS_CIA_COMP_ITA CIA2 WHERE CIA2.CIA_CODE_ITA = CIA.CIA_CODE_ITA AND JOB.COMPANY = CIA2.COMPANY AND (CIA.ESTABID = CIA2.ESTABID OR CIA2.ESTABID = ' ') AND CIA2.EFF_STATUS = 'A')

# 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 Rcd Nbr
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 CIA_CODE_ITA Character(30) VARCHAR2(30) NOT NULL Company Integrative Contract Code ITA
5 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
6 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID