About 8,140,000 results
Open links in new tab
  1. SQL ORDER BY Keyword - W3Schools

    The ORDER BY command sorts the result set in ascending order by default. To sort the records in descending order, use the DESC keyword. The following SQL statement selects all the …

  2. MySQL ORDER BY Descending ASC command for listing of records

    Here is the command to display the records in descending order ( from highest to lowest ) based on the mark field. SELECT * FROM `student` ORDER BY mark DESC ; Here the total mark …

  3. MS-SQL sort output in descending order - Stack Overflow

    Oct 18, 2012 · You need to remove the DESC from your ORDER BY clause. Your result is in exact reverse order because of DESC! I will get last year 7 records from database. i need 7 …

  4. SQL ORDER BY Clause with 7 Examples - LearnSQL.com

    Sep 27, 2022 · You can use the keywords ASC or DESC (if desired) with each column to sort that column in ascending or descending order. Let’s say you need to display table records in …

  5. SQL ORDER BY - SQL Tutorial

    This tutorial shows you how to use the SQL ORDER BY clause to sort rows returned by the SELECT clause in ascending or descending order.

  6. MySQL Order By Ascending and Descending - Tutorial Gateway

    MySQL Order By clause is used to sort the table data in either Ascending or Descending order. By default, data is not inserted into Tables in any sequence unless you have an index. So, If …

  7. SQL ORDER BY Examples to Sort and Order Data - SQL Server Tips

    Apr 10, 2023 · Sorting result sets is done using the SQL ORDER BY clause in a SELECT statement. ORDER BY, as the name implies, orders a result set in ascending or descending …

  8. SQL ORDER BY Clause (With Examples) - Programiz

    ORDER BY DESC (Descending Order) We use the DESC keyword to sort the selected records in descending order. For example,-- order all rows from Customers in descending order by age …

  9. SQL ORDER BY Clause with Descending Order - updategadh.com

    Feb 10, 2025 · Whenever we want to sort records based on specific columns in an SQL database, we use the ORDER BY clause. This clause allows us to organize data in either ascending or …

  10. SELECT FROM table in DESCENDING ORDER of a column

    To sort rows of a table in descending order, use the SQL Query "SELECT * FROM table_name ORDER BY column_name DESC;". Examples are provided.

  11. Some results have been removed
Refresh