How to Build Your Own Clubhouse: Session #3 #5
-
VideoIn this session, we finished with constructing the query to fetch rooms information: The next series of exercises will help you get acquainted with the documentation and find answers
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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