SCH_AENRL_ER_VW

(SQL View)
Index Back

View for Sch AutoEnroll Errors

View for SCH AutoEnroll Errors This is a join of SCH_AENR_ER_TBL and JOB

SELECT ER.EMPLID , ER.EMPL_RCD , ER.EFFDT , ER.EFFSEQ , ER.LASTUPDDTTM , ER.TL_PRCS_ERR_FLG , ER.DESCRLONG , JOB.DEPTID , JOB.LOCATION , JOB.UNION_CD , JOB.JOBCODE , JOB.EMPL_TYPE , JOB.SETID_DEPT , JOB.SETID_JOBCODE , JOB.SETID_LOCATION , JOB.BUSINESS_UNIT , JOB.COMPANY , JOB.POSITION_NBR , JOB.SUPERVISOR_ID , 1 FROM PS_SCH_AENR_ER_TBL ER , PS_JOB JOB WHERE ER.EMPLID = JOB.EMPLID AND ER.EMPL_RCD = JOB.EMPL_RCD AND ER.EFFDT = JOB.EFFDT AND ER.EFFSEQ = JOB.EFFSEQ AND ER.TL_PRCS_ERR_FLG <> 'DE' UNION ALL SELECT ER.EMPLID , ER.EMPL_RCD , ER.EFFDT , ER.EFFSEQ , ER.LASTUPDDTTM , ER.TL_PRCS_ERR_FLG , ER.DESCRLONG , JOB.DEPTID , JOB.LOCATION , JOB.UNION_CD , JOB.JOBCODE , JOB.EMPL_TYPE , JOB.SETID_DEPT , JOB.SETID_JOBCODE , JOB.SETID_LOCATION , JOB.BUSINESS_UNIT , JOB.COMPANY , JOB.POSITION_NBR , JOB.SUPERVISOR_ID , 1 FROM PS_SCH_AENR_ER_TBL ER , PS_JOB JOB WHERE ER.TL_PRCS_ERR_FLG = 'DE' AND ER.EMPLID = JOB.EMPLID AND ER.EMPL_RCD = JOB.EMPL_RCD AND ER.EFFDT = JOB.EFFDT AND ER.EFFSEQ = JOB.EFFSEQ AND JOB.EFFDT = ( SELECT MAX(JOB2.EFFDT) FROM PS_JOB JOB2 WHERE JOB.EMPLID = JOB2.EMPLID AND JOB.EMPL_RCD = JOB2.EMPL_RCD ) AND JOB.EFFSEQ = ( SELECT MAX(JOB3.EFFSEQ) FROM PS_JOB JOB3 WHERE JOB3.EMPLID = JOB.EMPLID AND JOB3.EMPL_RCD = JOB.EMPL_RCD AND JOB3.EFFDT = JOB.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 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
6 TL_PRCS_ERR_FLG Character(2) VARCHAR2(2) NOT NULL Error Type
DE=Job Deletion
EE=Eligibility Error
NE=Not Eligible
RE=Retro Errors
VI=Validation Issues
7 DESCRLONG Long Character CLOB Long Description
8 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
9 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
10 UNION_CD Character(3) VARCHAR2(3) NOT NULL Union Code
11 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
12 EMPL_TYPE Character(1) VARCHAR2(1) NOT NULL Employee Type
E=Exception Hourly
H=Hourly
N=Not Applicable
S=Salaried
13 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
14 SETID_JOBCODE Character(5) VARCHAR2(5) NOT NULL Job Code Set ID
15 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location Set ID
16 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
17 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
18 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number
19 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
20 COUNT1 Number(12,0) DECIMAL(12) NOT NULL AUS WGEA counts