I have some strings in a column in Impala like
'class:104;teacher:ted;school:first;subclass:404'
'class:105;teacher:nick;subclass:650;students:400'
I want to do a
case when info like '%class%' then substr(info,6,3) end as class
case when info like '%subclass%' then **<Here to take the value of the subclass>** end as subclass
How can I do it? As you can see it is not positional in order to go with substr()