So lets say I have table like this with unknown number of columns. I would like to know if there is a way to map env struct properties into columns.
ID | env.foo | env.bar | .... | unknown number of env. columns | .... | env.xyz |
1 | prod | null | null | null | null | null |
2 | prod | prod | null | null | null | null |
3 | null | null | null | null | null | prod |
My desired output from this table would be like this
ID | env
1 | foo
2 | foo
2 | bar
3 | xyz
