Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

DESC

DESC

The DESC command is utilized to sort retrieved data in descending order.

The provided SQL statement selects all columns from the “Customers” table, sorting them in descending order based on the “CustomerName” column.

Example

SELECT * FROM Customers
ORDER BY CustomerName DESC