Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif(active,code,'\'+code)
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01542446
Message ID:
01542458
Views:
31
thanks. tried to download BOL but realized it was already installed!
found it in there




>>how do you do this in sqlserver:
>>
>>SELECT IIF(active,"\"+code,code) as code,title,statute_id FROM statute ORDER BY 1
>>
>>
>>use for enabling/disabling items in combobox
>>
>>thanks
>>
>>Peter
>
>You can use CASE in a select statement. Look in Books Online for CASE.
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform