Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting to Case from IIF
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00193595
Message ID:
00193605
Views:
13
>Has anyone used a Case in SQL Server to replace an IIF statement. I want to check to see if the person has a spouse ID and then print 'Mrs.' else ''. Any ideas?
>TIA!
>DLC

Select *, NewField=case when SpouseId is Null then '' else 'Mrs' end ...
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform