KhushiRaina
Programmer
Hi,
Can we use Decode query with 'In' statement
Eg:if location In (1,4,5) then return ('Metro')
elsif location In (19,20,25) then return ('Main')
end if
So on....
How can i check for renge of values, currently i am doing as:
Select location,decode(location,1,'Metro',4,'Metro',
19,'Main' and so on.....
But i cannot keep checking for individual nos..
Could anyone suggest me a better option
Thanks..
Khushi.
Can we use Decode query with 'In' statement
Eg:if location In (1,4,5) then return ('Metro')
elsif location In (19,20,25) then return ('Main')
end if
So on....
How can i check for renge of values, currently i am doing as:
Select location,decode(location,1,'Metro',4,'Metro',
19,'Main' and so on.....
But i cannot keep checking for individual nos..
Could anyone suggest me a better option
Thanks..
Khushi.