You are viewing a single comment's thread. Return to all comments →
SELECT TOP 1 salary * months AS earnings , COUNT(*) FROM Employee GROUP BY salary * months ORDER BY earnings DESC;
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 →
MS SQL Server
SELECT TOP 1 salary * months AS earnings , COUNT(*) FROM Employee GROUP BY salary * months ORDER BY earnings DESC;