Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

SQL double index

$
0
0

If i have double index OrderID | ProductID 

and i try to find where ProductID = 30 AND OrderID = 20

will sql serever use in this situation the double index , i mean will it switch fields to OrderID = 20 AND ProductID 30

or it doesn't use this index and will use sequential search in the whole table?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>