I've searched for hours but i didnt find a solution for my problem.
I have a query that results in a 2 column table like:
key            value
str01          color
str03          size
str04          length
str07          width
str08          height
str09          propertyXY
And another table with str01 to str10 as column names.
id    str01    str02    str03    str04    ...
1     blue     NULL     big      123m           
Is it possible to retrieve the following with one queue?
id    color    size    length    ...
1     blue     big     123m           
(notice that str02 is not present in the first queue result) So essentially i want to dynamically rename the column names of the final output query according to the subquery mentioned above.
It would be great if someone had an idea on how to approach this.
