Favourites
asked on
Is Immediate If available in Sql Server ?
In Access there is a function called Immediate If ( IIF) which has the same functionality as ternary operation (?:) in C. I want to know whether there is a similar function in SQL Server.
ASKER
This is not what we are looking for.
We need to use the equivalent function of IIF(MS- Access2.0)
in MS-Sql Statements.
Like for eg. DECODE function in oracle.
select decode(a.field1>30,a.field 2,decode(a .field1<20 ,a.field3, a.field4))
from table1 a
where <condition>
We need to use the equivalent function of IIF(MS- Access2.0)
in MS-Sql Statements.
Like for eg. DECODE function in oracle.
select decode(a.field1>30,a.field
from table1 a
where <condition>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good. I am able to solve the problem thru the answer u gave me. Thanks a lot.
Your best source for info if you have installed SQL Server client utilites is in SQL Server Books online, assuming you had enough space to install those as well.