Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: I'm looking for a special kind of decode
If c1 is your column name:
DECODE(SUBSTR(c1,INSTR(c1,'chosenAnswer=',1,1)+14,1),'t','a', DECODE(SUBSTR(c1,INSTR(c1,'chosenAnswer=',1,2)+14,1),'t','b', DECODE(SUBSTR(c1,INSTR(c1,'chosenAnswer=',1,3)+14,1),'t','c', DECODE(SUBSTR(c1,INSTR(c1,'chosenAnswer=',1,3)+14,1),'t','d')))) result Received on Tue Jan 11 2005 - 12:31:11 CST
![]() |
![]() |