You are viewing a single comment's thread. Return to all comments →
The order by statement is unecessary as you can sort the grouped items using asc or desc. You can simplify slightly by using
SELECT MONTHS * SALARY AS EARNINGS, COUNT(*) FROM EMPLOYEE GROUP BY EARNINGS DESC LIMIT 1;
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 →
The order by statement is unecessary as you can sort the grouped items using asc or desc. You can simplify slightly by using