0

I am trying to use Array_agg to help combine some records, but it seems to be removing the record when I try to use it. The format of what I have written is below. All the records which are individual stay.

SELECT 
columnA,
columnB,
columnC,
string.Join(", ", ARRAY_AGG(column1)) AS col1,
string.Join(", ", ARRAY_AGG(column2)) AS col2,
SUM(column3) AS col3,
SUM(column4) AS col4,
FROM table
GROUP BY columnA, columnB,columnC
4

0 回答 0