After a Select Query I have the following table:
id CN SN DC
1 null null null
1 1234 null 1245
1 null 2536 null
2 null null null
2 null 2596 null
I want make using select command in SQL SERVER something like:
id CN SN DC
1 1234 2536 1245
2 null 2596 null
Can anyone help me with that, please?
Thank you!
Assuming you want the maximum value returned for each column: