select desc from table code example
Example 1: how to sort names in alphabetical order in sql
SELECT id,
first_name,
last_name,
FROM customer
ORDER BY last_name ASC;
Example 2: sql desc
Used with ORDER BY to return the data in descending order.
Example: Raddish, Peaches, Bananas, Apples