How can we sort by department and then salary?
Comma-separated columns in ORDER BY apply secondary and tertiary sort orders when primary values tie.
Department rosters sorted by seniority or compensation, categorized product listings.
SELECT name, department, salary
FROM employees
ORDER BY department, salary DESC;Practice typing production-grade SQL code for Multiple Column Sorting.