Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instead of OR in WHERE clause
Message
 
 
To
03/02/2014 22:56:45
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01593065
Message ID:
01593074
Views:
28
>>You can use UNION with the rest of the conditions. It is the same thing.
>
>I am not sure I am following you. Could you provide a small example?

This query
select * from myTable where Condition1 OR Condition2
is the same as
select * from myTable where Condition1
UNION
select * from myTable where Condition2
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