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

Query optimizer and techniques

$
0
0

This is a general/generic question, if there is a clustered index and multiple non-clustered indexes which index does the query optimizer pick to retrieve the results.

I guess query optimizer picks non-cluster index scan over clustered index scan for a "select count(*) from table" if that is so which non-clustered index does it pick? I don't have any table to exemplify. So let me know what happens in general. Thanks in advance.


svk


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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