Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How 2 do this in TSQL?
Message
From
18/08/2005 14:15:20
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Miscellaneous
Thread ID:
01042027
Message ID:
01042037
Views:
24
This message has been marked as the solution to the initial question of the thread.
>How would I best do something like this in T-SQL?
>
>SELECT IIF(ISNULL(int_field),0,1) AS lSelected FROM MyTable
>
>Do I use a SQL CASE statement, or is there an easier in-line way?
>
>TIA
SELECT CAST(ISNULL(int_field,0) AS BIT)
Previous
Reply
Map
View

Click here to load this message in the networking platform