Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Split comma seperated values to multiple columns

$
0
0

Hello,

I have the following scenario.  I have a column with comma seperated values in SQL table. I

want the output to be split in multiple columns. Please help me with the SQl Query.

Existing Column                                                                                  Role1       Role2            Role 3       Role4     Role5

MANAGER,PARTICIPANT,ARRANGER,LEAD ,JOINT LEAD                    MANAGER    PARTICIPANT  ARRANGER   LEAD    JOINT LEAD

PARTICIPANT,ARRANGER, LEAD                                                     PARTICIPANT ARRANGER      LEAD

Thanks for the help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>