Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I...
Message
From
06/11/2000 16:53:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How do I...
Miscellaneous
Thread ID:
00438565
Message ID:
00438565
Views:
60
In VFP, if I have a logical field, I can do something like this:

select iID, iif(lLogical, 'Open', 'Closed') from sometable

This will return the word Open or Closed depending on the value of lLogical.

Since SQL Server does not have an IIF function, how do I do the same thing using Transact SQL?
Thanks,
Dan Jurden
djurden@outlook.com
Next
Reply
Map
View

Click here to load this message in the networking platform