Postgresql – How to aggregate only parts of members of each group in one query statement in PG?
I have a table people(gid int, name varchar) with data: gid name 1 Bill 2 Will 2 Musk 2 Jack 1 Martin 1 Jorge now I want to get a result set like below: gid representative(varchar) 1 Bill, Martin 2…