Changes between Version 1 and Version 2 of Ticket #6422, comment 37
- Timestamp:
- Jul 13, 2011, 5:09:41 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6422, comment 37
v1 v2 6 6 }}} 7 7 8 The DISTINCT ON expression requires the leftmost ORDER BY to match the fields given in the DISTINCT ON clause. To make sure the parent_id will be in ORDER BY, use ``parent_ _ pk`` or ``parent__id``:8 The DISTINCT ON expression requires the leftmost ORDER BY to match the fields given in the DISTINCT ON clause. To make sure the parent_id will be in ORDER BY, use ``parent_ _pk`` or ``parent_ _id``: 9 9 10 10 {{{