I need a help to convert sql table rows into columns.
Shown below is the sample data:
Col1 Col2 Col3
1 A 12
1 B 23
1 C 43
2 A 32
2 B 54
2 C 76
I want to convert this into:
Col1 A B C
1 12 23 43
2 32 54 76
Can someone please tell me how to achieve this. I have never done such queries before.
Thanks in advance , Vinay