Hi,
Try belwo one it will work for you.
[code=oracle]
select * from emp where sal=(case when sal>2000 and sal<5000 then 2000 else 3000 end)
[/code]
Let know if you face any issues.
User Profile
Collapse
-
-
Where V1 In (select Fun(1)
Hi All,
I wrote a function which will return varchar i.e '10','11','12', '13' and I am passing this value in IN cluase in SELECT query as
[code=oracle]
SELECT * FROM VV WHERE V1 IN (SELECT FUN(1) FROM DUAL).
[/code]
Where, FUN(1) is my function name, which accpets NUMBER as IN parameter and it will return VARCHAR. i.e '10','11','12', '13' .
When I ran the above query I am getting...
No activity results to display
Show More
Leave a comment: