Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF() equivalent
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01082688
Message ID:
01082779
Views:
8
>>>>Is there an equivalent of FoxPro's IIF() function in T-SQL?
>>>
>>>
CASE WHEN fld1<0 THEN 0 ELSE fld1 END
>>
>>Might be a new UT responce time record: 29 seconds!
>>:)
>
>Looks like you used floating point calculator to get the time difference between question and answer. :)
>Your result is off by 2 seconds. :)

That's because I used BETWEEN() function and didn't subtract you keyboard's ENTER key lag time. :)))
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform