Chapter 1: Introduction to Query Optimization
The SQL Server Query Optimizer is a cost-based optimizer. It analyzes a number of candidate execution plans for a given query, estimates the cost of each of these plans, and selects the plan with the lowest cost of the choices considered. Indeed, given that the Query Optimizer cannot consider every possible plan for every query, it actually has to find a balance between the optimization time and the quality of the selected plan.
Therefore, it is the SQL Server component that has the biggest impact on the performance of your databases. After all, selecting the right (or wrong) execution plan could mean the difference between a query execution time of milliseconds, and one of minutes, or even hours. Naturally, a better understanding of how the Query Optimizer works can help both database administrators and developers to write better queries and to provide the Query Optimizer with the information it needs to produce efficient execution plans. This book will demonstrate how you can use your newfound knowledge of the Query Optimizer's inner workings and, in addition, it will give you the knowledge and tools to troubleshoot the cases when the Query Optimizer is not giving you a good plan.
  1. [2011/12/29] SQL Interview Questions *1 by raju6891 (2194)
  2. [2012/01/09] SQL : Structured Query Language *5 by bpks_013 (1790)
  3. [2012/01/03] SQL Interview Questions with Answers *3 by manu dayal (2490)
  4. [2011/12/01] ORACLE SQL*Plus *1 by SameerPa (1609)
  5. [2011/11/21] BACK END TEST GUIDE for SQL *2 by indiareks (2848)