I need to combine the data of 2 tables, both has the same structure
Table 1:
key A.a A.b
1 2 2
3 3
4 4
2 1 1
table 2 :
key A.a A.b
1 5 5
6 6
How can i have with a simble query this result :
key A.a A.b
1 2 2
3 3
4 4
5 5
6 6
2 1 1
without any unnest() functions. I don't want to use unnest() because of the huge volume of these tables which is bery bad for the global performance of this merge.
Thank you very much !
There are two solution without unnest by using
joinor union and group commands. Two Arrays can be commbinded by the commandsarray_concatorarray_concat_agg.