Having the table A below:
id units
1 [1,1,1]
2 [3,0,0]
1 [5,3,7]
3 [2,5,2]
2 [3,2,6]
I would like to query something like:
select id, array_append(units) from A group by id
And get the following result:
id units
1 [1,1,1,5,3,7]
2 [3,0,0,3,2,6]
3 [2,5,2]