Which clause is used in a MySQL query to sort the result set in descending…

2026

Which clause is used in a MySQL query to sort the result set in descending order based on a specific column?

Answer: B. ORDER BY... DESCTo sort a result set in descending order based on a specific column in MySQL, use the ORDER BY clause followed by the column name and the DESC keyword. For…

  1. A.

    SORT BY... DESC

  2. B.

    ORDER BY... DESC

  3. C.

    SORT BY... DSC

  4. D.

    ORDER BY... DSC

Attempted by 1096 students.

Show answer & explanation

Correct answer: B

To sort a result set in descending order based on a specific column in MySQL, use the ORDER BY clause followed by the column name and the DESC keyword. For example: SELECT * FROM table_name ORDER BY column_name DESC.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…