Multiple choice technology databases

Which SQL keyword is used to sort the result-set?

  1. SORT BY

  2. SORT

  3. ORDER

  4. ORDER BY

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SQL uses the ORDER BY clause to sort result sets, not SORT or SORT BY. Option D correctly identifies ORDER BY as the keyword used with ASC or DESC to control sort direction. Options A, B, and C are not valid SQL keywords for sorting.