I've got mytable1 with row_number integer and list_of_ids int[] column
mytable2 with id integer and company text columns
Example entry for mytable1
1 | {633681,1278392,2320888,2200426}
2 | {2443842,2959599,3703823,3330376,915750,941736}
Example entry for mytable2
633681 | apple
1278392 | charmander
2320888 | apple
2200426 | null
2443842 | batman
I need to feed back values from mytable2 into mytable1. This way the expected output would be
1 | {633681,1278392,2320888,2200426} | 2 apple, 1 charmander, 1 null
2 | {2443842,2959599,3703823,3330376,915750,941736} | 1 batman etc...
unnest, then join and aggregate.