ORDER BY Clause
Order By allows us to arrange our results.
When to use
Use it whenever you'd like to arrange your results in a certain way.
To use order by, just type:
ORDER BY [Column]
Where [Column] is the thing you'd like to order by.
You can order in Ascending (low to high) or Descending (high to low) order.
ORDER BY [Column] DESC
ORDER BY [Column] ASC
Hints & tips
- Order By allows you to arrange your output.
- Ascending means low to high (ASC)
- Descending means high to low (DESC)
Lesson notes are only available for subscribers.