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

ORDER BY is the SQL clause used to sort query results in ascending (ASC) or descending (DESC) order based on one or more columns. Options like SORT BY or just ORDER/SORT are not valid SQL syntax.