Using instr in a decode select?
579406Jul 17 2007 — edited Jul 17 2007Is it possible to use the INSTR function within a DECODE function? What I want to do is return 'Repair and Return' if my column has an 'RR' in it, otherwise return 'Swap'. This is what I have tried within my select:
SELECT colA,
DECODE( instr(M4OWNER.REQUEST_LINE.REQUEST_PROCESS, 'RR' , 1, 1) from dual,'REPAIR AND RETURN','SWAP')
FROM tableA