You are viewing a single comment's thread. Return to all comments →
SELECT MAX(months * salary) AS max_earnings, COUNT(*) FROM employee WHERE salary * months = (SELECT MAX(months * salary) FROM employee);
Seems like cookies are disabled on this browser, please enable them to open this website
Top Earners
You are viewing a single comment's thread. Return to all comments →
SELECT MAX(months * salary) AS max_earnings, COUNT(*) FROM employee WHERE salary * months = (SELECT MAX(months * salary) FROM employee);