I have this table:
id Name Value
----------------------
1 Apple Mac
2 Apple iPad
1 Microsoft Surface
2 Microsoft XBox
I need this:
id Apple Microsoft
-------------------------
1 Mac Surface
2 iPad XBox
However I won't always know what the 'Name' or 'Value' column data will be. But it will always be in the same column numbers in my select statement
I've tried using pivot but I can't wrap my head around how this would work without aggregate functions