I have this long string in one of the columns of the table. I want to get only specific information:- My Table structure:-
Col1 = \'123\'
Col2 = \'AAAAA\'
Co
You simply need to do a SUBSTR on the string in col3....
Select col1, col2, REPLACE(substr(col3, instr(col3, 'Client Name'),
(instr(col3, '|', instr(col3, 'Client Name') -
instr(col3, 'Client Name'))
),
'Client Name = ',
'')
from Table01
And yes, that is a bad DB design for the reasons stated in the original issue