Sorting and Ordering Data
Sorting and Ordering Data
Sorting Data with ORDER BY
The ORDER BY
clause allows you to sort your results either in ascending or descending order.
Using ASC and DESC Keywords
You’ll also learn about sorting in both ascending (ASC
) and descending (DESC
) order, making it easier to view your data in a meaningful way.