CM_JOBCDALL_VW2

(SQL View)
Index Back

All Jobcode roles

All Competency/Cluster profiled roles that are identified by a Job Code. This view is used within Person to Role match. It selects the Setid in SETID_JOBCODE to differentiate between the Job Task Setid.

SELECT DISTINCT A.SETID, A.JOBCODE, B.DESCR FROM PS_CM_ROLE_COMPS A, PS_JOBCODE_TBL B WHERE A.EFFDT = (SELECT MAX(EFFDT) FROM PS_CM_ROLE_COMPS WHERE A.POSITION_NBR = POSITION_NBR AND A.SETID=SETID AND A.JOBCODE = JOBCODE AND A.JOB_FAMILY = JOB_FAMILY AND A.JOB_TASK = JOB_TASK AND EFFDT <= %CURRENTDATEIN) AND B.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE B.SETID = SETID AND B.JOBCODE = JOBCODE AND EFFDT <= %CURRENTDATEIN) AND A.JOBCODE = B.JOBCODE AND A.SETID=B.SETID

  • Related Language Record: CM_JOBCDVW2_LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID_JOBCODE Character(5) VARCHAR2(5) NOT NULL Job Code Set ID
    2 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description