0 votes
in Oracle by
Say you’re preparing a report for the management to identify employees who have shown consistently high performance. Write an Oracle SQL query to retrieve the names and performance ratings of employees with a rating of 5 in all their performance evaluations.

1 Answer

0 votes
by
SELECT employee_name

FROM employees

WHERE rating = 5

GROUP BY employee_name

HAVING COUNT(*) = (SELECT COUNT(*) FROM employees);

Related questions

0 votes
asked Jan 23 in Oracle by SakshiSharma
0 votes
asked Oct 1, 2021 in Data Science by Robin
...