Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF() like Function in Oracle?
Message
From
19/05/1999 05:53:37
 
 
To
18/05/1999 08:54:11
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00219769
Message ID:
00220330
Views:
27
You are correct - I got mixed between UDB syntax and Oracle's - in Oracle you should indeed use DECODE
something like decode(greatest(num_trys,max_trys),num_trys,1,0) should work


Arnon
>I think SQL Server supports the CASE statement but I have
>not seen it in Oracle. Are you sure such an animal exists
>and can be used in the SELECT statement via SQL passthru?
>
>>>Is there a function in Oracle that emulates what
>>>the VFP IIF() function does? The closest thing
>>>I have seen is the DECODE() function.
>>>
>>>What I need to do is as follows in a SQL passthru statement:
>>>
>>>IIF(num_trys > max_trys, 'True', 'False') AS fieldname
>>
>>Oracle supports CASE statements in the SELECT - you can get IIF functionality with that
>>
>>Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform