C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
SQL ORDER BY CLAUSE WITH DESCENDING ORDER:This statement is used to sort data in descending order. You should use the DESC attribute in your ORDER BY clause as follows. SELECT supplier_city FROM suppliers WHERE supplier_name = 'IBM' ORDER BY supplier_city DESC; Let's see an example of an employee table:
This is an example to sort the result in descending order by NAME. SELECT * FROM CUSTOMERS ORDER BY NAME DESC; This would produce the following result.
Next TopicSQL Sorting On Multiple Columns
|