Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select expression for both VFP and SQL DB
Message
From
29/03/2019 19:13:17
 
 
To
29/03/2019 13:17:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667660
Message ID:
01667741
Views:
40
>>>
when a=1 and b=1 then 100 else when a=1 and  b=0 then 50 ...
>>
>>Yep, Unfortunately T-SQL doesn't have logical data type
>
>Which is kind of ridiculous, because it has the bit type as a field. It's just that it treats it as unusable in expressions, unless you cast it as a, say, integer.

This works in T-SQL with no casting:

select * from store where active = 0
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform