我一直在尋找一種方法來顯示多行,一個單元格中的一列。它的內容用逗號分隔。在SQL Server中將列分組爲多行和Group_concate如MySQL
例如,在代替:
ProjectID Name count ------------------------------------- 2 Technical Services 31 1 Security Services 32 7 Technical Services 32
我想我的查詢的結果是這樣的:
Name Label --------------------------- Technical Services 31,2 Technical Services 32,7 Security Services 32,1
我也希望我的查詢的結果看起來像這樣(就像在MySQL Group_Concate
)
Name Label ------------------------------- Security Services 32,1 Technical Services 31,2: 32,7
PLZ格式化。它很難理解你在找什麼 – sundar 2012-08-11 07:09:23