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
Try like this:
select field1, array_to_string(array_agg(field2), ',') from table1 group by field1;