The ORDER BY Clause is used to sort the results either in ascending or descending order based on one or more columns.
Oracle and some other database sorts query results in ascending order by default.
Syntax:
SELECT * FROM tableName [WHERE condition] [ORDER BY column1, column2,…,columnN] [ASC | DESC];
Where ASC keyword is used for ascending order and DESC keyword is used for descending order.
No comments:
Post a Comment