/1 min read
SQL ORDER BY Tutorial
How ORDER BY Works
Sorts Result Rows
Sorts the data based on a specific column or columns.
ASC vs DESC
DESC for descending (top scorers first); default is ASC ascending.
Syntax
SELECT * FROM table ORDER BY column_1 DESC;
Multi-Column Sort
ORDER BY team ASC, points DESC sorts by team then by points within each team.
Master SQL at Noble Desktop
Noble Desktop's SQL Bootcamp covers queries, joins, aggregations, and the full SQL toolkit data analysts use every day.