Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF() in ORACLE.
Message
 
 
To
29/10/2001 08:11:12
Deepak Chopra
IBM Global Services India Pvt. Ltd.
Pune, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00574389
Message ID:
00574409
Views:
22
>What is the replacement of IIF() in ORACLE.
>
>
>Thannks in advance.

DECODE() is like an IIF() function. Ex.
select decode(mytable.fieldname,'A','Aardvark','B','Bandicoot')
Fieldname - expression to search for
'A' and 'B' - possible values of Fieldname
'Aardvark' and 'Bandicoot' - values to return of corresponding possible value is correct

Check out the documentation for more info on DECODE().

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform