In response to Jamie Thomson's T-SQL poser , here's one very efficient method of concatenation in an aggregate query. It uses the FOR XML clause to turn a result set into a string. SELECT DISTINCT id, SUBSTRING( (SELECT ','+name AS [text()]
Read More...