String concatenation aggregation in PostgreSQL

SELECT STRING_AGG(col_name, ',')
FROM SampleTable

Know more: