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;

Related questions

0 votes
asked Jan 23 in Oracle by SakshiSharma
0 votes
asked Jan 21 in Oracle by rajeshsharma
...