SELECT BIB_ID, TITLE ,
CASE WHEN INSTR(TITLE, ' :') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, ' :'),0,99,instr(TITLE, ' :'))), ' :')
WHEN INSTR(TITLE, ' =') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, ' ='),0,99,instr(TITLE, ' ='))), ' =')
WHEN INSTR(TITLE, ' /') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, ' /'),0,99,instr(TITLE, ' /'))), ' /')
END AS BIBTITLE
FROM BIB_TITLE_V
SELECT BIB_ID,
CASE
WHEN INSTR(TITLE, ' :') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, ' :'),0,99,instr(TITLE, ' :'))), ' :')
ELSE CASE
WHEN INSTR(TITLE, '=') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, '='),0,99,instr(TITLE, '='))), '=')
ELSE CASE
WHEN INSTR(TITLE, '/') > 0 THEN rtrim(substr(TITLE,1, decode(instr(TITLE, '/'),0,99,instr(TITLE, '/'))), '/')
ELSE TITLE
END
END
END AS BIBTITLE
FROM BIB_TITLE_V