Hello All,Can you tell me what is the MSSQL Equivalent of List Tag?What I want to achieve is concat all the ID base on its Code.ExampleCode | ID001 | 80011,80010,80003002 | 80014,80026,80031Here is the sample code that I made.selectdistinctb.Emt_CostCenterCode,stuff((select','+ Emt_EmployeeID from T_EmployeeMaster a where a.Emt_EmployeeID = b.Emt_EmployeeID For XML PATH('')),1,1,'')from T_EmployeeMaster bgroup by b.Emt_CostCenterCode,b.Emt_EmployeeID
Please help.Thanks