TL_SCH_ESS_SRCH

(SQL View)
Index Back

Admin/Manager Search Vw

Search view intended for use by administrative operators such as data entry clerks or with Manager events. The view returns the employee names and job titles for each employee and job that the operator has access to. Access is determined by the TL Group Security defined for the Operator's Row Security Class. When the Operator's Row Security Class has no specific Group Security, HR Department Security is used to determine access.

SELECT E.OPRID , E.EMPLID , E.EMPL_RCD , E.TIME_RPTG_STATUS , E.WORKGROUP , E.TASKGROUP , E.TASK_PROFILE_ID , E.ELP_TR_TMPLT_ID , E.PCH_TR_TMPLT_ID , E.PERIOD_ID , E.NAME , J.DEPTID , J.JOBCODE , JC.DESCR , J.EFFDT FROM PS_JOBCODE_TBL JC , PS_JOB J , PS_TL_ESS_SRCH_VW E WHERE E.EMPLID = J.EMPLID AND E.EMPL_RCD = J.EMPL_RCD AND J.EFFDT = ( SELECT MAX(J1.EFFDT) FROM PS_JOB J1 WHERE J1.EMPLID = J.EMPLID AND J1.EMPL_RCD = J.EMPL_RCD AND J1.EFFDT <= %CurrentDateIn) AND J.EFFSEQ = ( SELECT MAX(J2.EFFSEQ) FROM PS_JOB J2 WHERE J2.EMPLID = J.EMPLID AND J2.EMPL_RCD = J.EMPL_RCD AND J2.EFFDT = J.EFFDT ) AND JC.SETID = J.SETID_JOBCODE AND JC.JOBCODE = J.JOBCODE AND JC.EFFDT = ( SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.SETID = J.SETID_JOBCODE AND JC1.JOBCODE = J.JOBCODE AND JC1.EFFDT <= J.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
4 TIME_RPTG_STATUS Character(1) VARCHAR2(1) NOT NULL Time Reporter Status
A=Active
I=Inactive
5 WORKGROUP Character(10) VARCHAR2(10) NOT NULL Workgroup
6 TASKGROUP Character(10) VARCHAR2(10) NOT NULL Taskgroup
7 TASK_PROFILE_ID Character(10) VARCHAR2(10) NOT NULL Task Profile ID
8 ELP_TR_TMPLT_ID Character(10) VARCHAR2(10) NOT NULL Elapsed Reporting Template
9 PCH_TR_TMPLT_ID Character(10) VARCHAR2(10) NOT NULL Punch Reporting Template
10 PERIOD_ID Character(12) VARCHAR2(12) NOT NULL Time Period ID
11 NAME Character(50) VARCHAR2(50) NOT NULL Name
12 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
13 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
14 JOBCODE_DESCR Character(30) VARCHAR2(30) NOT NULL Job Code Description
15 TL_SYSTEM_DT Date(10) DATE TL System Date