Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT iif(... Expression Syntax Question
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01337260
Message ID:
01337263
Views:
11
>Probably a very easy question.
>
>I AM DOING THIS IN C#.
>
>In VFP I would have a SELECT statement such as:
>
>SELECT iif( number < 1, "NOT SET", "SET") AS status FROM ...
SELECT CASE WHEN Number <1 THEN 'NOT SET'  ELSE 'SET' END as Status from ...
>
>What is the equivalent of IIF() in Microsoft SQL 2005 in building an expression for the resultant table, or is it the same?
>
>Thank you in advance.

See http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform