HR_SP_ADHOC_VW

(SQL View)
Index Back

Succession Plan - Processing

used to retreive most recent job of a person

SELECT SEC.OPRID ,b.EMPLID ,b.EMPL_RCD ,b.BUSINESS_UNIT ,b.POSITION_NBR ,b.JOBCODE ,b.DEPTID ,b.LOCATION FROM PS_JOB_CURR_VW b ,PS_EMPLMT_SRCH_COR SEC WHERE b.EMPL_RCD = ( SELECT MIN(b2.EMPL_RCD) FROM PS_JOB_CURR_VW b2 WHERE b2.EMPLID = b.EMPLID) AND SEC.HR_STATUS = 'A' AND b.EMPLID = SEC.EMPLID AND b.EMPL_RCD = SEC.EMPL_RCD

# 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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_HR

5 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number

Prompt Table: POSITION_DATA

6 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code

Prompt Table: JOBCODE_TBL

7 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPT_TBL

8 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code