Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Decode and escape characters help..

$
0
0
Hi everybody,
I have a little issue with a decode statement, I'm using Oracle 10, this is the query:

SELECT JOBEXE.OPS_FK
FROM VS_AM_REQUEST_ITEM JOBEXE
WHERE JOBEXE.JOB_KIND IN ( DECODE ( &value , 'REJ' , 'REPA' , 'PRJ', ' ''PREP''||,||''MAIN'' ' )) ;

Basically if value is PRJ then JOB_KIND can be equals to PREP or MAIN , so I tried to nest a decode into an in, but no rows are selected...
Thanks in advance for the help!

Viewing all articles
Browse latest Browse all 13329

Trending Articles