-1
我有一個表是這樣的:SQL服務器:刪除多行空值
Result Col1 Col2 Col3
-----------------------------
Row1 null 1 null
Row1 2 null null
Row1 null null 3
Row1 1 null null
Row1 null 2 null
Row1 null null 3
,我希望得到的結果類似
Result Col1 Col2 Col3
-----------------------------
Row1 2 1 3
Row1 1 2 3
如何在SQL Server中完成這件事表?我知道如果我使用Col1,Col2,Col3的MAX
,我只會得到一行。但我需要得到兩排。
我該怎麼做?
SQL表格表示無序集合。你如何識別哪些值一起? –