PostgreSQL GROUP BY different from MySQL?
MySQL’s totally non standards compliant GROUP BY can be emulated by Postgres’ DISTINCT ON. Consider this: MySQL: SELECT a,b,c,d,e FROM table GROUP BY a This delivers 1 row per value of a (which one, you don’t really know). Well actually you can guess, because MySQL doesn’t know about hash aggregates, so it will probably use … Read more