Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Changing substring position in a string

$
0
0
I have a string like this (there is a carriage return at the end of each line):

[1]
[A] Tom
[B] Cherry
[C] Mickey
[D] Donald
[End]

Using SQL functions, I want to change it to:

[1] Tom
[A] Cherry
[B] Mickey
[C] Donald
[D] 
[End]

Please advise. Thanks.

Viewing all articles
Browse latest Browse all 7129

Trending Articles



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