E_INPDAI_ITA_VW

(SQL View)
Index Back

View on Comp INPDAI cd -ITA

View on Comp INPDAI cd -ITA

SELECT DISTINCT JOB.EMPLID , JOB.EMPL_RCD , JOB.EFFDT , INPDAI.INPDAI_CODE_ITA , JOB.COMPANY , JOB.ESTABID , I.INPDAI_POS_CD_ITA FROM PS_JOB JOB , PS_INPDAI_COMP_ITA INPDAI , PS_INPDAI_TBL_ITA I WHERE JOB.COMPANY = INPDAI.COMPANY AND (JOB.ESTABID = INPDAI.ESTABID OR INPDAI.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 INPDAI.INPDAI_CODE_ITA = I.INPDAI_CODE_ITA AND INPDAI.EFFDT = ( SELECT MAX(INPDAI2.EFFDT) FROM PS_INPDAI_COMP_ITA INPDAI2 WHERE INPDAI2.INPDAI_CODE_ITA = INPDAI.INPDAI_CODE_ITA AND JOB.COMPANY = INPDAI2.COMPANY AND (INPDAI.ESTABID = INPDAI2.ESTABID OR INPDAI2.ESTABID = ' ') AND INPDAI2.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 INPDAI_CODE_ITA Character(16) VARCHAR2(16) NOT NULL INPDAI Code ITA
5 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
6 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
7 INPDAI_POS_CD_ITA Character(4) VARCHAR2(4) NOT NULL INPDAI Position Code ITA