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

split column

$
0
0

Hi friends,

I know this is simple but due to time issue I'm posting here.

declare @a varchar(50)='$3500 x FBDs /3'
Select @a

now i want the result into three columns 

value     type    multiplier

$3500    fbd           3   

I meant before 'X' as one column , after '/' as one column . in between as one column.

Note.The length is not fixed. I cannot use substring.

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>