I have a SQL statement as shown below. In that i wanted to have IN clause values like 'X','Y','Z'
and this value may vary based on different conditions. But when i give this value at run time SQL statement not giving me any output.
SELECT test,test1,test2
FROM test_n
WHERE NVL(code,'X') in(:code);
here
:code = 'X','Y','Z'
Can any one help me?
Also i cannot use anonymous block or functions to achieve this.