Explaining SQL Server Statistics with Playing Cards

When you run a query, how does SQL Server estimate the number of rows? I’ll explain in this half-hour video demo using playing cards, then showing the same issues in SQL Server Management Studio:

An Introduction to Microsoft SQL Server's Statistics

Here’s the demo script I use in the video.

To learn more, check out our free statistics class on YouTube.

Free, 3× a week

Get my new posts by email

Three posts a week, plus a Monday roundup of the best database news from around the web.

5 comments

  1. Another great breaking-it-down video, Brent!

    You threw that “try updating your statistics before rebuilding your indexes” bit in there just to see who was paying attention, didn’t you?

  2. It would be neat if results from execution could update statistics. Some background process that sees the diff bitmap has changed and can offer new results. Not every execution, just when Clippy is not busy.

Leave a comment

Your email address will not be published. Required fields are marked *

Email me about new comments: