Skip to content
Discussion options

You must be logged in to vote

Answer to Question 1.

If sorting is not chosen, the rows will be returned in an unspecified order. The actual order in that case will depend on the scan and join plan types and the order on disk, but it must not be relied on. A particular output ordering can only be guaranteed if the sort step is explicitly chosen. The ORDER BY clause specifies the sort order.

Answer to Question 2.

ORDER BY rooms.date DESC

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by booleanhunter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
homework question Homework questions for learning sessions
2 participants