SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQl server2008-split delimited values into three rows


SQl server2008-split delimited values into three rows

Author
Message
arubala75
arubala75
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 8
Hi,

Iwould like to have the delimited values in one of the columns in sql server table to be split into three rows.

ex: Project id Teams Impacted
5032401 BSS;NOC;Operations;Engineering;Network;Cable


as below having 3 * 8 blocks

Project id : Team1 Team2 team 3 Team4 team5 team6 team 7 team 8
5032401 BSS Engineering
NOC Network
Operations Cable
we have to ingore null values as well.
Any help regarding this is greatly appreciated. Please suggest at the earliest.
Thanks and Regards,
Aru
bitbucket-25253
bitbucket-25253
SSCrazy Eights
SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)

Group: General Forum Members
Points: 8001 Visits: 25280
I would suggest reading Jeff Moden's aticle here on SSC at:

http://www.sqlservercentral.com/articles/Tally+Table/72993/

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search