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

How would I be able to do a split in sql like the C# split

$
0
0

I have an nvarchar column in my datatable in sql which all look something like this

1~S~W13~Y2014

2~S~W13~Y2014

3~S~W13~Y2014

4~S~W13~Y2014

5~S~W13~Y2014

6~S~W13~Y2014

7~S~W13~Y2014

8~S~W13~Y2014

9~S~W13~Y2014

10~S~W13~Y2014

I want to get the 1S,2S, 3S,4S,5S,6S.7S.8S.9S.10S

how would I be able to do that in a query?


Debra has a question


Viewing all articles
Browse latest Browse all 23857

Trending Articles