I have a table and I\'d like to pull one row per id with field values concatenated.
In my table, for example, I have this:
TM67 | 4 | 32556 TM67 | 9
Since 9.0 this is even easier:
SELECT id, string_agg(some_column, ',') FROM the_table GROUP BY id