About 1,770,000 results
Open links in new tab
  1. SQL DESC Keyword - W3Schools

    The DESC command is used to sort the data returned in descending order. The following SQL statement selects all the columns from the "Customers" table, sorted descending by the "CustomerName" column:

  2. SQL ORDER BY Keyword - W3Schools

    DESC. The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.

  3. SQL | DESCRIBE Statement - GeeksforGeeks

    May 10, 2023 · As the name suggests, DESCRIBE is used to describe something. Since in a database, we have tables, that’s why do we use DESCRIBE or DESC(both are the same) commands to describe the structure of a table. Syntax: DESCRIBE one; OR. DESC one; Note: We can use either DESCRIBE or DESC(both are Case Insensitive).

  4. MySQL ORDER BY Keyword - W3Schools

    The ORDER BY keyword is used to sort the result-set in ascending or descending order. The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.

  5. SQL ORDER BY - Sorting Data in SQL Table in Descending or Ascending

    ORDER BY Clause in SQL Script. SELECT; FROM; WHERE; GROUP BY; HAVING; ORDER BY; Syntax. SELECT [Column 1], [Column 2], [Column 3] FROM Table ORDER BY [Column 1] ASC / DESC, [Column 2] ASC / DESC. This clause belongs to the end of SQL script. We can sort the data according to one or multiple columns.

  6. SQL 101: a Beginner’s Guide to SQL Database Programming

    Mar 20, 2025 · SQL 101: learn how SQL commands make filtering, retrieving, and managing data easy. Skip navigation. ... SELECT * FROM customer WHERE city = 'New York' ORDER BY total_purchase DESC; ... Next Steps in Database Programming How to Pick Your SQL Dialect. I briefly touched on the SQL dialects in the introduction, so let me elaborate on that topic. ...

  7. DESC Command in SQL - Naukri Code 360

    May 22, 2024 · The DESC in SQL is used in the "ORDER BY" clause to sort query results in descending order, arranging data from highest to lowest. and it can describe a table's structure, showing column names and data types.

  8. SQL DESC Keyword: Mastering Descending Order Sorting in SQL

    Oct 27, 2024 · SQL provides the ORDER BY clause to sort the results of a SELECT statement, and the DESC keyword plays a crucial role in specifying a descending order. This guide provides a comprehensive overview of the DESC keyword …

  9. SQL ORDER BY DESC | Examples of SQL ORDER BY DESC - EDUCBA

    Mar 13, 2023 · ORDER BY clause in standard query language (SQL) is used to arrange the result set obtained using a SELECT query in an ascending or descending order based on the values of a specified column. ORDER BY clause when used with the DESC keyword, it arranges the result set in descending order based on the value of the specified column.

  10. ORDER BY in MySQL: DESC & ASC Query with EXAMPLE - Guru99

    Jul 17, 2024 · Both the SQL DESC and ASC keywords are used together in conjunction with the SELECT statement and MySQL ORDER BY clause. The SQL DESC sort keyword has the following basic syntax. SELECT {fieldName (s) | *} FROM tableName (s) is the statement containing the fields and table (s) from which to get the result set from.

  11. Some results have been removed
Refresh