August 28, 2008 at 8:36 am
I have the following resultset:
sport
football
basketball
track
How do I return "football, basketball, track" as one value :crazy:
August 28, 2008 at 8:42 am
Check out this article:
http://www.sqlservercentral.com/articles/tamestrings6/263/
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
August 28, 2008 at 8:44 am
HI There,
I just learnt this today.
[Code]
DECLARE @Result VARCHAR(1000)
SELECT @Result = Col1 + ',' + ISNULL(@Result ,'')
FROM YouTable
SELECT @Result
[/code]
Hope that helps
----------------------------------------------
Try to learn something about everything and everything about something. - Thomas Henry Huxley
:w00t:
Posting Best Practices[/url]
Numbers / Tally Tables[/url]
August 28, 2008 at 10:30 am
OMG thank you so much! 😀
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply