Quantcast
Channel: Bring text before the second special character in SQL - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Bring text before the second special character in SQL

$
0
0

I have a column that looks like this:

ss pullover jaq:rwbwht:40 ribbed cttn 5608:navy:10.5 shorts:black:xls:pigment wash mushroom:l  t tote bag:mushroom:1size

I need to extract the string before the second :, so that it would look like this:

ss pullover jaq:rwbwhtribbed cttn 5608:navy   shorts:black  s:pigment wash mushroom  t tote bag:mushroom

How do I do that?

I tried RIGHT and substring functions, but they only bring text up to the first : not until the second :.


Viewing all articles
Browse latest Browse all 3

Trending Articles



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