Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instead of OR in WHERE clause
Message
 
 
To
03/02/2014 19:12:55
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01593065
Message ID:
01593071
Views:
38
>I am spliting my SQL in two at some locations to collect first the primary keys and then issue another SQL based on a simple WHERE clause for just the primary keys. Instead of putting a list of conditions separated by a OR, is there a more sufficient approach?

You can use UNION with the rest of the conditions. It is the same thing.
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