Can I find out how to combine arrays according to identifier:
Column1 Column2
--------------------------
1 {"a","b"}
1 {"c"}
2 {"d"}
2 {"w"}
output:
Column1 Column2
--------------------------
1 {"a","b","c"}
2 {"d","w"}
I tried array_agg, but this is not the appropriate function to merge the array. using version 8.4 at the moment.
source
share