Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opportunistic or?
Message
From
06/01/2006 14:24:57
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01083884
Message ID:
01084224
Views:
11
Justin,

Yes and No,

Yes, the optimizer will try to optimize the query and might scan indexes for both expression connected with OR depending on the choosen optimizer strategy.

No, If doing a table scan (no indexes on the expressions are used) it is not.

Walter,


>Is the OR statement opportunistic in SQL Server 2000?
>
>IOW, if the first condition is met, does it check the second?
>
>TIA,
>
>-Justin
Previous
Reply
Map
View

Click here to load this message in the networking platform