Search Postgresql Archives

Re: Sorting with DISTINCT ON

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




It does allow you to sort on both columns.
   SELECT DISTINCT ON (path) path, comment_id, created, title
     FROM bewertungen.tblcomments ORDER BY path, created

Thank you very much. Works perfect! :-)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux