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

Seperated by a Semicolon in SQL

$
0
0

Hi,

         I have a column(Service) in SQl table that is seperated by Semicolons ,one more column(Code) and is seperated by semicolons.I need to match both the columns data ending by semicolon .

SQl table

ID          Date                                  Service                                                            Code

5367      09/02/2013                 DataProcessing;OnlineInfoServices                 514;9082

8909     09/08/2013                 DataMart; Engineering Services                        9087;6892

I want the output in the below format

ID          Date                                  Service                    Code

5367      09/02/2013                 DataProcessing                514

5367      09/02/2013                OnlineInfoServices            9082

8909     09/08/2013                 DataMart                          9087

8909     09/08/2013                Engineering Services          6892


Anita



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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