postgresql Comma seperated values of a column


Example

SELECT 
    string_agg(<TABLE_NAME>.<COLUMN_NAME>, ',') 
FROM 
    <SCHEMA_NAME>.<TABLE_NAME> T