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
and the version to work on the array type:
select array_to_string( array(select distinct unnest(zip_codes) from table), ', ' );