By now, you should have a good understanding of the importance of indexes. It is even more important for the optimizer to have the necessary information on the data distribution so that it can choose indexes effectively. In SQL Server, this information is maintained in the form of statistics on the index key.
In this chapter, you’ll learn the importance of statistics in query optimization. Specifically, I will cover the following topics: