Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing a comma-delimited string in column?

Status
Not open for further replies.

pandatime

Programmer
Jan 29, 2010
92
AU
Hi,

I have a table with a column that can hold single values as well as a comma-delimited string, for exampe:

column
Joe, 1, Red
Mary
Ned, 2, Blue, Purple
Susan, 3

etc

How can I write something to grab a distinct result set of all the various values, which would be:

Joe
Mary
Ned
Susan
1
2
3
Red
Blue
Purple

Thanks much
 
Check FAQ hare for function named dbo.Split

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top