0 votes
in Oracle by
Write an Oracle SQL query to find the five most common names in the Employee table.

1 Answer

0 votes
by

SELECT name, COUNT(*) AS name_count

FROM Employee

GROUP BY name

ORDER BY name_count DESC

FETCH FIRST 5 ROWS ONLY;

...