How can we sort query results in ascending or descending order?
ORDER BY sorts the returned rows by one or more specified columns in ASC or DESC direction.
Creating leaderboards, sorting by latest dates, organizing records by numeric value.
SELECT *
FROM employees
ORDER BY salary DESC;Practice typing production-grade SQL code for ORDER BY.