You are viewing a single comment's thread. Return to all comments →
For MS SQL Server:
SELECT TOP 1 (Salary * Months) as EARNINGS, COUNT(name) 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 →
For MS SQL Server:
SELECT TOP 1 (Salary * Months) as EARNINGS, COUNT(name) FROM Employee GROUP BY Salary, Months ORDER BY EARNINGS DESC