SQL -Structured Query Language - Sql Order By - Descending Tutorial
To retrieve a record in descending order from the existing created table. Then we can use an ' ORDER BY ' Clause with DESC Attribute.
Syntax-
The basic syntax of the ORDER BY statement with DESC Attribute is given below –
SELECT * FROM table_name ORDER BY column_name DESC
For example-
SELECT first_name FROM employees ORDER BY first_name DESC;
Here it will retrieve all records from the Employees table in descending order of a first_name column.