Walter Meester
HoogkarspelNetherlands
General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2000
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only