E_PREV_ITA_VW

(SQL View)
Index Back

View on Comp PREV cd -ITA

View on Comp PREV cd -ITA

SELECT DISTINCT JOB.EMPLID , JOB.EMPL_RCD , JOB.EFFDT , PREV.PREV_CODE_ITA , JOB.COMPANY , JOB.ESTABID , P.PREV_POS_CODE_ITA FROM PS_JOB JOB , PS_PREV_COMP_ITA PREV , PS_PREV_TBL_ITA P WHERE JOB.COMPANY = PREV.COMPANY AND (JOB.ESTABID = PREV.ESTABID OR PREV.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 P.PREV_CODE_ITA = PREV.PREV_CODE_ITA AND PREV.EFFDT = ( SELECT MAX(PREV2.EFFDT) FROM PS_PREV_COMP_ITA PREV2 WHERE PREV2.PREV_CODE_ITA = PREV.PREV_CODE_ITA AND JOB.COMPANY = PREV2.COMPANY AND (PREV.ESTABID = PREV2.ESTABID OR PREV2.ESTABID = ' ' ) AND PREV2.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 Record
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 PREV_CODE_ITA Character(16) VARCHAR2(16) NOT NULL PREV Code ITA
5 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
6 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
7 PREV_POS_CODE_ITA Character(4) VARCHAR2(4) NOT NULL Prev Position Code ITA