↧
Answer by Alexander Klimenko for Bring text before the second special...
Another option using regexp:SELECT REGEXP_SUBSTR(<YOUR_COLUMN>, '^[^:]*:[^:]*') FROM <YOUR_TABLE>;
View ArticleAnswer by Koushik Roy for Bring text before the second special character in SQL
One way is to use split_part() to split string based on : and then concat them again.Or second way is to use substring with regexp_instr() like below-select split_part('ss pullover...
View ArticleBring text before the second special character in SQL
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:1sizeI need to extract the string before the...
View Article