If you are in PostgreSQL however you can use the much simpler to write DISTINCT ON ... It seems DISTINCT requires the first item in ORDER BY to match - and ...
確定! 回上一頁