February 28, 2017

PostgreSQL: Limit 1 on Group BY

It’s stupidly complicated to get just one record per group on a PostgreSQL query… After an hour of trial and error this worked for me: SELECT […]