Concatenate multiple result rows of one column into one, group by another column [duplicate] Concatenate multiple result rows of one column into one, group by another column [duplicate] postgresql postgresql