[code=oracle]
select * from test where sal in ( case sal
when (sal < 5000) and (sal > 2000) then 2000
else 3000
end)
SQL> /
when (sal<5000 and sal>2000) then 2000
*
ERROR at line 2:
ORA-00907: missing right parenthesis
[/code]
if i executing this stmt , i m getting an error message
select * from test where sal in ( case sal
when (sal < 5000) and (sal > 2000) then 2000
else 3000
end)
SQL> /
when (sal<5000 and sal>2000) then 2000
*
ERROR at line 2:
ORA-00907: missing right parenthesis
[/code]
if i executing this stmt , i m getting an error message
Comment