I have 2 Nested Tables and I want to INSERT INTO each other.
I try this :
INSERT INTO table1 ( record.id, record.product.type, record.product.price ) SELEC
you can use the APPLY operator to unpivot a table please visit this answer https://stackoverflow.com/a/27708046/1862306
You can try this:
INSERT INTO table1 SELECT STRUCT(id, STRUCT(productPrice.type, productPrice.price)) FROM table2;