4 ms·
In PostgreSQL you can GROUP BY on the primary key so you can omit specifying all other columns
by tpetry 5y ago
In PostgreSQL you can GROUP BY on the primary key so you can omit specifying all other columns
- icambron 5y agoI remember when I discovered this-- very helpful feature and I am happy it's there (and sad most DBs don't have it). But if I'm grouping I'm almost necessarily not grouping on at least one of the tables' PKs, so it only goes so far