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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse a SQl Column into multiple columns

Status
Not open for further replies.
Mar 12, 2003
678
US
I have a sql table that contain a column with text that has commas in it. They are used to seperate the data within the column. i wan to be able to create a column for each commas seperated text value. I am using SQl 2005. Below is an example of the text field:

17 N., w/s of NMB Flea Mkt., e/s

What i want from this is 3 new columns;

Column 1 Column 2 Column 3
17N. w/s of NMB Flea Mkt. e/s
 
Wow. Any chance you can go back and design a table structure that conforms to some kind of normalization?

Otherwise, have a look here: faq183-1151


Ni neart go cur le cheile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top