How to query SQL to convert key-value table to a bunch of column whose name is the key, and the value is the value?
I.E.
owner | key | value
----------------------------
1 | AGE | 15
1 | HEIGHT | 155
1 | WHAT | Nothing
1 | WHAT | Something
to something like this:
owner | AGE | HEIGHT | WHAT
----------------------------
1 | 15 | 155 | Nothing;Something
I had a query which done it manually, is there a way to keep it generic? Thanks.