PER_COMPTNCY_VW

(SQL View)
Index Back

Find Competency Service VW

This view returns the maximum effective dated competencies across evaluations for an employee. Only active evaluations are selected. This view is used by the FindPersonCompetency service.

SELECT A.EMPLID , B.COMPETENCY , B.EFFDT , A.EVALUATION_TYPE , B.YR_LAST_USED , B.HOW_VERIFIED , B.PROFICIENCY , B.INTEREST_LEVEL , B.YEARS_OF_EXP , B.YR_ACQUIRED , %subrec(NVQ_UNITS_SBR,B) FROM PS_CM_EVALUATIONS A , PS_COMPETENCIES B WHERE A.EMPLID = B.EMPLID AND A.EVALUATION_ID = B.EVALUATION_ID AND A.REVIEW_STATUS = 'Y' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_COMPETENCIES B1 WHERE B1.EMPLID = B.EMPLID AND B1.COMPETENCY = B.COMPETENCY AND B1.EFFDT <= %CurrentDateIn) AND B.EVALUATION_ID = ( SELECT MAX(EVALUATION_ID) FROM PS_COMPETENCIES B2 WHERE B2.EMPLID = B.EMPLID AND B2.COMPETENCY = B.COMPETENCY AND B2.EFFDT = B.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PERSON

2 COMPETENCY Character(8) VARCHAR2(8) NOT NULL Competency

Prompt Table: COMPETENCY_TBL

3 EFFDT Date(10) DATE Effective Date
4 EVALUATION_TYPE Character(1) VARCHAR2(1) NOT NULL Evaluation Type
A=Approved/Official
B=Subordinate
C=Customer
E=Executive Committee
L=Learning
M=Mentor
P=Peer
R=Supervisor/Manager
S=Self
5 YR_LAST_USED Number(4,0) SMALLINT NOT NULL Year Last Used
6 HOW_VERIFIED Character(1) VARCHAR2(1) NOT NULL Verified By
E=Employee Claim
J=On the Job Training
N=Not Verified
O=Employer Observation
T=By Test
V=NVQ Authority
7 PROFICIENCY Character(1) VARCHAR2(1) NOT NULL Proficiency
8 INTEREST_LEVEL Character(1) VARCHAR2(1) NOT NULL Interest Level
9 YEARS_OF_EXP Number(5,1) DECIMAL(4,1) NOT NULL Years of Work Experience
10 YR_ACQUIRED Number(4,0) SMALLINT NOT NULL Year Acquired
11 START_DT Date(10) DATE Start Date
12 COMP_DT Date(10) DATE Completion Date
13 EXP_DT Date(10) DATE Expected Completion Date
14 PRESENTED_DT Date(10) DATE Evidence Presented
15 SUBMIT_DT Date(10) DATE Submission Date
16 DESCRLONG Long Character CLOB Long Description