SELECT STUFF(( SELECT ',' + LTRIM(RTRIM(TureName)) FROM dbo.RH_User WHERE id IN ( 1, 2, 3 ) FOR XML PATH('') ), 1, 1, '') AS name