problem with substr
hi
i have the following string
'ram2/11king'
'Pinnnn3/12queen'
I want to retrive the contents before slash and after slash seperately..
select substr('ram2/11king',instr('ram2/11king','/',1)+1) from dual
I want to retrive ram2 seperately and 11king seperately
I am able to do retrive 11king from the above select
how can i retrive ram2 and pinnn3 string before slash
Thanks,