I have a predefined value from the parameter table varchar column which is below.
'ENGR PACKAGE TYPE,DOCUMENT TYPE,PRODUCT TYPE,MATERIAL TYPE,PACKAGE CODE'
So whenever I got a status message like this
'PACKAGE CODE "F075" NOT FOUND'
I want to check it with the column in the parameter table, then I want to have a plsql case when condition that if a string exists in the parameter table, it will return 'TRUE' else 'FALSE'.
but MY PLSQL query below is not working.
select CASE WHEN INSTR(upper('PACKAGE CODE "F075" NOT FOUND'), 'ENGR PACKAGE TYPE,DOCUMENT TYPE,PRODUCT TYPE,MATERIAL TYPE,PACKAGE CODE') > 0 THEN
'TRUE'
ELSE 'FALSE'
END SAMPLE from dual;
Hope you can help me