Multiple choice technology databases

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

  1. order

  2. sort

  3. order by

  4. sort by

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

The standard SQL syntax to sort the output of a query is ORDER BY, followed by the columns to sort. While ORDER is a component keyword and SORT exists in other paradigms, standard SQL uses the complete clause ORDER BY for sorting.