In this article, I discuss the basic methods I use to analyse and optimize SQL queries. A properly written SQL with appropriate indices can turn a query that runs in hours into one that runs in seconds. While the code in this article is rooted in SQL Server, most of the concepts will apply to other databases.
We will go over:
- Analyzing Performance of Queries
- Optimizing SQL Syntax
- Query Execution Plans
- Creating