SQL ORDER BY Clause
The ORDER BY clause is used in the SQL SELECT statement to order the data in ascending or descending order, this may help us get a better look when analyzing data, the ORDER BY clause can sort numeric as well as alphabetical data in both ascending and descending order.
SQL ORDER BY Clause Syntax
SELECT column_name(s) FROM table_name ORDER BY column ASC|DESC ASC as ascending order
DESC as descending order
Example:
SELECT * FROM Dept ORDER BY SalOR