Shortcut: Compare query plans in SQL Server Management Studio
One of the advantages of SQL Server Management Studio (SSMS) is that it can be used to analyze queries, not just to execute them.
There are two basic types of query plan: estimated execution plans, and actual execution plans.
For a typical query, I can obtain the estimated execution plan, by hitting Ctrl-L, choosing the option in the Query menu, or clicking on the toolbar icon:
Let’s do this for the following query:
2018-12-06