I have a problem I can't resolve
I have a parameter that can be either contain '%' or 'VALUE' or 'VALUE,VALUE,VALUE'
I need to code the select statement to cater for all of these possibilities
I currently have the following
which works fine for a value but not for '%'.
How do I code an optional LIKE clause with the above statement?
I have a parameter that can be either contain '%' or 'VALUE' or 'VALUE,VALUE,VALUE'
I need to code the select statement to cater for all of these possibilities
I currently have the following
Code:
AND NVL(SGBSTDN_RATE_CODE, '%') [b]IN[/b] -- (lv_rate_code_list)
(SELECT DISTINCT gjbprun_value
FROM gjbprun
WHERE gjbprun_job = 'SZRAMGR'
AND gjbprun_one_up_no = 50524
AND gjbprun_number = '06') -- this returns the value of the parameter
How do I code an optional LIKE clause with the above statement?