
Compare stream and hash aggregate operators in SQL Server, showing how sorted data enables stream aggregation and unsorted data triggers hash aggregation for group by and sums.
Explore semi joins and anti semi joins in execution plans, including left and right variants, demonstrated inside a nested loop with practical examples.
Understand how eager spool loads all data into tempdb to prevent the Halloween problem, using a staging temp table to update safely instead of reading from the index.
Study merge join patterns by noting outdated statistics cause underestimation and tempdb spills during sorting, and assess how index choices and estimated versus actual row counts shape execution plans.
Explore hash join patterns in SQL Server, including build and probe phases, outer vs inner tables, cardinality issues, and memory spills to tempdb in hash match executions.
Learn index concepts and commonly used execution plan operators, identify indicators and patterns in execution plans, and use these concepts to tune SQL commands.
Explore the read uncommitted isolation level and how it bypasses concurrency protections, enabling dirty reads and showcasing locking behavior and rollback impact with a SQL Server example.
Analyze how deadlocks occur when two transactions wait on locked records, how SQL Server detects them, rolls back a victim (error 1205), and how timing adjustments prevent recurrence.
Explore how SQL Server uses lock modes such as shared, exclusive, update, and intent, along with schema locks and page-level behavior to maintain data consistency.
Explore when in-memory oltp tables excel in high-concurrency workloads by avoiding heavy locking and hot pages, and apply them to session state, data staging, and etl workflows.
Explore hash indexes on in-memory tables, noting bucket counts for point lookups and inserts and their limits on inequalities and sorting, then compare to range non-clustered indexes.
Learn how in-memory OLTP snapshot isolation keeps reads stable during a transaction without locking, prevents lost updates, and uses snapshot elevation or hints for memory-optimized tables.
Understand repeatable read isolation in in-memory OLTP, where reads within a transaction yield the same results and include snapshot features. Explore rollback on commit and phantom reads with SSMS demonstrations.
This course is not for beginners. One should have prior knowledge on T-SQL commands before enrolling into this course.The course contains the following topics
Index Concepts in SQL Server
Page in SQL Server
Extent in SQL Server
Heap in SQL Server
Clustered Index
Non Clustered Index
Heap with Non Clustered Index
Indexes are not very Deep
Composite Index
Index Fragmentation
Index Creation using T-SQL Commands
Index Rebuild and ReOrganize
FillFactor
Included Columns
Data Type on Clustered Index
Execution Plan
Statistics
Actual Execution Plan
Estimated Execution Plan
Common Operators
Table Scan
Index Scan
Index Seek
Key Lookup
RowID Lookup
Nested Loop
Sort
Merge Join
Hash Join
Compute Scalar
Stream Aggregate
Hash Aggregate
Left Semi Join
Right Semi Join
Left Anti Semi Join
Right Anti Semi Join
Segment
Sequence Project
Lazy Spool
Eager Spool
Parallelism - Distribute Stream ,Gather Stream & Repartition Stream
More on Execution Plans
Halloween Problem
Execution Plan of Insert Operation
Execution Plan of Delete Operation
Execution Plan of Update Operation
Subtree cost related to Parallelism
Subtree Cost of Stream and Hash Aggregate
Index supports Wild Card
Patterns to Note to Tune Queries
Parameter Sniffing
Parameter Sensitive Plan Optimization in Sql Server 2022
MergeJoin Patterns
Hash Join Patterns
Key Lookup Patterns
Sort Indicators
Aggregate Indicators
Parallelism Indicators
Warnings in Execution Plan
From these topocs you will learn how to read and understand execution plans which will help in tuning Transact SQL Commands
Later sections of the online video training course include topics related to Transactions , Concurrency Problems , their solutions using Transaction Isolation Levels . Another major portion of the course consists of In-Memory OLTP in T-SQL .
The details topics are
Transactions
Auto Commit Transactions
Implicit Transactions
Explicit Transactions
Deadlock
Lock Modes
Concurrency Problems
Dirty Read Problem
Non Repeatable Read Problem
Phantom Read Problem
Lost Update Problem
Isolation Levels and Solutions
Read Uncommitted Isolation Level
Read Committed Isolation Level
Repeatable Read Isolation Level
Serializable Isolation Level
Scenario where Repeatable Read or Serializable or Snapshot can be used
Snapshot Isolation Level
Read Committed Snapshot Isolation Level
In-Memory OLTP
What are In-memory Tables
Scenarios of In-memory Table
Creating In-memory Table and Testing its performance
In-memory Table Indexes
Native Compiled Stored Procedure
Migration from Existing Disk Based Tables to In-memory Table
In-Memory OLTP Isolation Levels
In-Memory OLTP Snapshot Isolation Level
In-Memory OLTP Repeatable Read Isolation Level
In-Memory OLTP Serializable Isolation Level