I have a SELECT
inside a stored procedures which outputs data into this format.
A B C
rowkey 1 2 3
I need to transform it into something like this:
key value
rowkey A 1
rowkey B 2
rowkey C 3
How should I go about transforming it into this?
I am not allowed to touch the SELECT
statement, so I should find a way to transform it perhaps creating a temporary table.