I have a string like this
XX0099-X01
I would like to split the string into two based on the hyphen, i.e.
XX0099
and X01
I have tried as
SELECT 'XX0099-X01',
SUBSTR('XX0099-X01',
1,
INSTR('XX0099-X01',
'-',
1
) -1
)
FROM dual
Not sure how to get the second part.
We have an old legacy system which still using 8i Oracle database.