I want to create a view that will display interesting stuff about the system users. Among other things, my DB has this table that has several rows per user, ranging basically from 0 to 3 rows. Each such row has a string field called "name", and I'd like my view to contain all of these comma-separated. For example:
UID Name Concatenation
1 John A, C
2 Jack B, C
3 James
4 Jill B
Is there a way to select from the other table into this column? I'm using PostgreSQL but this strikes me as a generic SQL question.