How can we list employees with their department names ordered alphabetically?
ORDER BY applies structured sorting across attributes projected from multiple joined tables.
Alphabetical staff directories, hierarchically sorted organizational rosters.
SELECT e.name, d.department_name
FROM employees e
JOIN departments d
ON e.department_id = d.department_id
ORDER BY d.department_name, e.name;Practice typing production-grade SQL code for JOIN with Sorting.