i am new to SQL server and i am trying to combine multiple row in single row but i am not able to do it.Can anyone help me out?
Input :
Id |RED |BUY |BSW
------------------------------------
1328 NULL NULL 0.05
1328 NULL 0.06 NULL
1328 0.01 NULL NULL
1328 0.05 NULL NULL
1329 NULL NULL 0.05
1329 NULL 0.05 NULL
1329 0.05 NULL NULL
Output
Id |RED |BUY |BSW
------------------------------------
1328 0.01 0.06 0.05
1328 0.05 NUll NULL
1329 0.05 0.05 0.05
Editing data so as to remove SUM()
conflict.