DESC Keyword
The DESC keyword or command is used to sort the data in descending order.
We have specified the column sort order using the DESC keyword.
Syntax
SQL
SELECT * FROM <TABLE_NAME> ORDER BY <COLUMN_NAME> DESC;Example 1
SQL
SELECT * FROM Employee ORDER BY Emp_Name DESC;Example 2
SQL
SELECT * FROM Employee ORDER BY Emp_Name DESC,Emp_Salary DESC;Summary
The DESC keyword helps us sort the results in descending order.

Join the conversation! Your thoughts help the community grow.