Question Details

Detailed explanation and options for the selected question.

What is the purpose of the SQL ORDER BY clause?

A. To sort query results
B. To filter rows based on a condition
C. To group rows with similar values
D. To limit the number of rows returned

Explanation:

ORDER BY sorts query results in ascending or descending order. WHERE filters rows, GROUP BY groups rows, and LIMIT restricts row count.