Hi
The query bellow runs ok alone, but when I try to compile a stored procedure with it inside an if statement an error message shows up.
query:
select nvl((select min(code) from table_1 where value_1 >=
100),
(select max(code) from table_1 where value_1 < 100))
from dual;
error message:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count c
What's wrong? How can I solve this problem?
Best Regards
Obede
The query bellow runs ok alone, but when I try to compile a stored procedure with it inside an if statement an error message shows up.
query:
select nvl((select min(code) from table_1 where value_1 >=
100),
(select max(code) from table_1 where value_1 < 100))
from dual;
error message:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count c
What's wrong? How can I solve this problem?
Best Regards
Obede