
SQL ORDER BY Keyword - W3Schools
To sort the table reverse alphabetically, use the DESC keyword: Sort the products by ProductName in reverse order: The following SQL statement selects all customers from the "Customers" table, sorted …
SQL ORDER BY - GeeksforGeeks
Jan 5, 2026 · SQL ORDER BY is used to sort the result set of a query in either ascending (ASC) or descending (DESC) order. By default, ORDER BY sorts in ascending order. Sorting can be applied …
ORDER BY clause (Transact-SQL) - SQL Server | Microsoft Learn
Nov 18, 2025 · DESC sorts from highest value to lowest value. ASC is the default sort order. NULL values are treated as the lowest possible values.
SQL ORDER BY DESC - TutorialsCampus
ORDER BY DESC statement is used to sort data in result-set in descending order. ORDER BY DESC statement is used in SELECT statement.
SQL ORDER BY Clause (With Examples) - Programiz
The SQL ORDER BY clause is used to sort the selected rows in ascending or descending order. In this tutorial, you will learn about the SQL ORDER BY clause with the help of examples.
ORDER BY in MySQL: DESC & ASC Query with EXAMPLE - Guru99
Jul 17, 2024 · The MySQL DESC keyword specifies that the sorting is to be in descending order. [LIMIT] is optional but can be used to limit the number of results returned from the query result set.
SQL: ORDER BY Clause - TechOnTheNet
DESC sorts the result set in descending order by expression. If the ASC or DESC modifier is not provided in the ORDER BY clause, the results will be sorted by expression in ascending order. This …