Skip to content

Instantly share code, notes, and snippets.

@internetbird
Last active December 21, 2015 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save internetbird/6229835 to your computer and use it in GitHub Desktop.
Save internetbird/6229835 to your computer and use it in GitHub Desktop.
Creating a "joined" string from SQL individual results
DECLARE @Names VARCHAR(8000)
SELECT @Names = COALESCE(@Names + ', ', '') + Name
FROM People
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment