I have a query that always returns a single row with many columns. I would like to turn this into 2 columns and many rows.
Original results:
Col1, Col2, Col3, Col4
val1, val2, val3, val4
What I want:
ColName, Value
Col1, val1
Col2, val2
Col3, val3
Col4, val4
Is it possible?
EDIT (clarification)
I am looking for an automatic way to do this. IE, then I can pass the results from any query that returns only 1 row.
source
share