I'm sure this has been asked many many times, but I can't find the answer to problem..
I have a some SQL the returns the following data..
Code:
id result
11 1
11 2
11 3
22 1
22 3
I want to change it so it spits out...
Code:
id result1 result2 result3
11 1 2 3
22 1 NULL 3
seems quite easy, I thought I could do it with a pivot, but I'm a bit stuck..
cheers
Daz