Section 10:118.Global Sorting Using ORDER BY

Use the ORDER BY clause in a SELECT statement to sort the data based on a specific column.

You can sort the data by multiple columns by including them in the ORDER BY clause. 

By default, the sorting is done in ascending order. You can specify descending order by adding the DESC keyword after the column name

Share this post