YOUR AD GOES HERE

Learn T-SQL With Erik: Aligning Queries and Indexes Part 5

Published 10, Jun 2026

Erik Darling (Erik Darling Data)


Description:
In this video, I dive into the intricacies of query optimization and index alignment in SQL Server, using a practical example to illustrate how different query structures can impact performance. By rewriting an 'IN' clause query through various methods-using 'VALUES', 'UNION', and breaking down the logic-I demonstrate how these changes can significantly improve execution plans, reducing memory grants, eliminating sorts, and ultimately making queries faster without parallelism. This video is part of a series aimed at helping you understand the nuances of SQL Server performance tuning, offering insights that go beyond what automated tools might suggest. Whether you're looking to enhance your T-SQL skills or simply want to stay ahead of the curve in an increasingly tech-driven world, there's always something new to learn from these sessions.

CHAPTERS

00:00:00 - Introduction
00:02:15 - Actual Execution Plans
00:04:56 - Parallel Plan Analysis
00:07:09 - Memory Grant Reduction
00:08:41 - Query Rewriting Benefits
00:13:09 - Logical Units in Queries
00:14:20 - Parallelism Trade-offs

Releted More Videos

You May Also Like

YOUR AD GOES HERE

YOUR AD GOES HERE