Database Managment - MySql

Back to Course

Lesson Description

Lession - #1288 SQL Orderby

The ORDER BY keyword is utilized to sort the outcome(result>
set in ascending or descending order. The ORDER BY keyword sorts the records in ascending order by default.


SELECT column1, column2, ...
FROM table_name
ORDER BY column1, column2, ... ASC|DESC;

Let's see an example

SELECT * FROM EMPLOYEE order By name ;


Try it here