EBS: Employee Performance Query
To get the Employee Performance Band.
SELECT DISTINCT papf.employee_number,
papf.full_name,
ppr.RATING_MEANING,
ppr.review_date,
hrv.name
FROM PER_ALL_PEOPLE_F papf,
PER_all_ASSIGNMENTS_F paaf,
PER_PERFORMANCE_REVIEWS_V ppr,
PER_PERIODS_OF_SERVICE_V pps,
HR_ORGANIZATION_UNITS_V hrv
WHERE 1 = 1
AND papf.person_id = ppr.person_id
AND PPS.PERSON_ID = papf.person_id
AND Paaf.PERSON_ID = papf.person_id
AND HRV.ORGANIZATION_ID = paaf.ORGANIZATION_ID
AND PPS.ACTUAL_TERMINATION_DATE IS NULL
AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
AND papf.effective_end_date
AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
AND paaf.effective_end_date
AND TO_CHAR (ppr.review_date, 'YYYY') = '2014'
--and to_number(ppr.RATING_MEANING) between 0 and 0.8 -
ORDER BY papf.employee_number
To get the Employee Performance Band.
SELECT DISTINCT papf.employee_number,
papf.full_name,
ppr.RATING_MEANING,
ppr.review_date,
hrv.name
FROM PER_ALL_PEOPLE_F papf,
PER_all_ASSIGNMENTS_F paaf,
PER_PERFORMANCE_REVIEWS_V ppr,
PER_PERIODS_OF_SERVICE_V pps,
HR_ORGANIZATION_UNITS_V hrv
WHERE 1 = 1
AND papf.person_id = ppr.person_id
AND PPS.PERSON_ID = papf.person_id
AND Paaf.PERSON_ID = papf.person_id
AND HRV.ORGANIZATION_ID = paaf.ORGANIZATION_ID
AND PPS.ACTUAL_TERMINATION_DATE IS NULL
AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
AND papf.effective_end_date
AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
AND paaf.effective_end_date
AND TO_CHAR (ppr.review_date, 'YYYY') = '2014'
--and to_number(ppr.RATING_MEANING) between 0 and 0.8 -
ORDER BY papf.employee_number
No comments:
Post a Comment