0 votes
in Oracle by
Imagine you’re an HR manager and want to get an overview of the average performance rating for each department. Write an Oracle SQL query to retrieve the department and the average performance rating for each department.

1 Answer

0 votes
by

SELECT department, AVG(rating) AS avg_rating

FROM employees

GROUP BY department;

Related questions

0 votes
asked Nov 8, 2021 in Sql by rajeshsharma
0 votes
asked Apr 17, 2022 in Apache Drill by sharadyadav1986
...