코딩코딩코딩

[HackerRank] Top Earners 본문

MySQL/Problem Solving

[HackerRank] Top Earners

hanshow113 2022. 1. 12. 01:52

 

 

 

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