JOB_TA_VW

(SQL View)
Index Back

SELECT DISTINCT A.EMPLID , C.HOME_HOST_EMPL_RCD , MIN(C.BEGIN_DT) , MIN(B.END_DT) , MAX(A.EFFDT) , A.BUSINESS_UNIT , A.DEPTID , A.LOCATION , A.POSITION_NBR , A.JOBCODE , A.SAL_ADMIN_PLAN , A.GRADE , A.COMPANY , B.ASSGN_TYPE , C.HOME_HOST , A.SUPV_LVL_ID FROM PS_JOB A , PS_ASGN_HOME_HOST C , PS_ASSIGNMENT B WHERE A.EMPLID = C.EMPLID AND %NUMTOCHAR(A.EMPL_RCD) = C.HOME_HOST_EMPL_RCD AND A.EFFDT <= C.BEGIN_DT AND B.EMPLID = C.EMPLID AND B.BEGIN_DT = C.BEGIN_DT AND C.HOME_HOST <> '0' AND A.EFFSEQ = ( SELECT MAX(E.EFFSEQ) FROM PS_JOB E WHERE A.EMPLID = E.EMPLID AND A.EMPL_RCD = E.EMPL_RCD AND A.EFFDT = E.EFFDT) GROUP BY A.EMPLID , C.HOME_HOST_EMPL_RCD , A.BUSINESS_UNIT , A.DEPTID , A.LOCATION , A.POSITION_NBR , A.JOBCODE , A.SAL_ADMIN_PLAN , A.GRADE , A.COMPANY , B.ASSGN_TYPE , C.HOME_HOST , A.SUPV_LVL_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 HOME_HOST_EMPL_RCD Character(3) VARCHAR2(3) NOT NULL Home/Host Empl Record
3 BEGIN_DT Date(10) DATE Begin Date
4 END_DT Date(10) DATE end date
5 EFFDT Date(10) DATE Effective Date
6 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_HR.BUSINESS_UNIT

Prompt Table: BUSUNIT_HR_VW

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

Prompt Table: DEPT_TBL

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

Prompt Table: LOCATION_TBL

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

Prompt Table: POSITION_DATA

10 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
11 SAL_ADMIN_PLAN Character(4) VARCHAR2(4) NOT NULL Salary Administration Plan

Prompt Table: SAL_PLAN_TBL

12 GRADE Character(3) VARCHAR2(3) NOT NULL Salary Grade

Prompt Table: SAL_GRADE_TBL

13 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
14 ASSGN_TYPE Character(3) VARCHAR2(3) NOT NULL Assignment Type
15 HOME_HOST Character(1) VARCHAR2(1) NOT NULL Home or Host
0=Home
1=Host 1
2=Host 2
16 SUPV_LVL_ID Character(8) VARCHAR2(8) NOT NULL Supervisor Level ID for use in capability grade system