Which SQL keyword is used to sort the result set:
-
ORDER
-
SORT
-
ORDER BY
-
GROUP BY
C
Correct answer
Explanation
The ORDER BY clause is used in SQL to sort the result set in ascending or descending order based on one or more columns. ORDER alone is not a valid clause - it must be followed by BY. SORT is not a standard SQL keyword for sorting results. GROUP BY is used for aggregation, not sorting.