Contents

Top Earners

   Jan 11, 2023     0 min read

Top Earners

문제

Top_Earners1.jpg
Top_Earners2.jpg
Top_Earners3.jpg

코드

MySQL

SELECT salary * months AS earnings
     , count(*)
FROM employee
GROUP BY earnings
ORDER BY earnings DESC
LIMIT 1