Toggle navigation
My Memo Wiki
Archive
Categories (ordered)
Categories
Online resources
Pages
Quick help
Tags
Submit
How to get last registers of each group in PostgreSQL
30 May 2016
ContractedPlan.all.order(:user_id, start: :desc).select('DISTINCT ON(user_id) *')
postgresql
15
« Previous
Archive
Next »