Machine-translated by Google. Questions are authored in English.
Top

Discussion

ORDER BY can be combined with the SELECT statements.

  • A.True
  • B.False

Answer: A

Correct answer: True

ORDER BY is a clause of the SELECT statement and comes last, after WHERE, GROUP BY and HAVING - sorting is the final operation applied to what those have produced.

It is worth combining deliberately rather than by habit: without it the result has no defined order at all, because a relation is a set. Any order observed without it is incidental to how the engine happened to read the data, and it can change when the table grows or an index is added.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.