EMPL_CO_VW

(SQL View)
Index Back

VW- JOB data

JOB_EMPLRCD_VW is a view of the Job record, which gives information on emplid, company and employment record number.

SELECT DISTINCT A.EMPLID ,A.COMPANY ,B.DESCR FROM PS_JOB A , PS_COMPANY_TBL B WHERE A.COMPANY = B.COMPANY AND B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_COMPANY_TBL C WHERE B.COMPANY = C.COMPANY AND C.EFF_STATUS = 'A' AND C.EFFDT<=A.EFFDT) 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.EFFDT = A.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Default Value: PERSON.EMPLID

Prompt Table: PERSON

2 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description