I have data in following format
ID Loss Sum
--------------------------
1 146276293.1 1
1 175538865.5 2
1 146276293.1 3
I want SQL script to return me
ID Sum1 Sum2 Sum3
---------------------------------------------------
1 146276293.1 175538865.5 146276293.1
pivotselectdynamic pivot.