...

Database Managment - Sql

Back to Course

Lesson Description


Lession - #1311 Sql Order By Clause


The ORDER BY keyword is utilized to sort the outcome set in ascending or descending order. The ORDER BY keyword sorts the records in climbing request naturally. To sort the records in dropping request, utilize the DESC keyword.



Syntax for Order By Clause




SELECT column-list 
FROM table_name 
[WHERE condition] 
[ORDER BY column1, column2, .. columnN] [ASC | DESC];





Example:



Online compiler