Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a SQL-Server version of IIF()
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00117628
Message ID:
00117629
Views:
12
>Does anyone know if there is a SQL Server function which is like IIF() in VFP? I want to do a select statment like the following...
>
>SQLEXEC(1,"select iif(lCondition,'Yes','No') from Table")
>
>Thanks,

Select "Newfield" = Case When lCondition=1 Then 'Yes' Else 'No' End From Table1
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform