Level
Advanced

Language
Greek, English

Role
Database Administrators, Developers, Data Analysts, Data Scientists, T-SQL practitioners

Product
SQL Server, Azure SQL Databases

Duration
24 hours

Course code
XLA-101

Overview

The journey to mastering T-SQL for optimal performance is a nuanced path that both experienced and novice users must navigate. This comprehensive course is designed to equip data professionals with the skills necessary to write efficient T-SQL code, tailored for the latest SQL Server versions and Azure SQL Database. The curriculum begins with the foundational principles of query processing, ensuring a solid base upon which to build performant T-SQL queries. As students delve into the material, they will be introduced to the critical tool of query execution plans, which are instrumental in troubleshooting and refining queries for peak performance.

The course then progresses to the identification of T-SQL patterns and anti-patterns, a crucial skill for any developer seeking to optimize their code. Understanding these patterns not only aids in analyzing execution plans for immediate performance insights but also assists in assessing the scalability of queries. To further demystify T-SQL execution, the course offers in-depth instruction on constructing diagnostic queries using dynamic management views and functions, thereby revealing the inner workings of SQL Server.

A significant portion of the course is dedicated to SQL Server's built-in tools, which are powerful allies in the quest to enhance query performance and scalability. Students will gain hands-on experience with features such as Extended Events, Query Store, and the Query Tuning Assistant, learning to implement them effectively to address performance issues swiftly.

By the culmination of this course, participants will possess the expertise to pinpoint query performance bottlenecks and identify the use of anti-patterns. More importantly, they will acquire the knowledge to avoid these common pitfalls in the future. The course's ultimate goal is to empower data professionals to extract every ounce of performance from their T-SQL queries, ensuring that their applications run with unparalleled efficiency. In essence, this course is a gateway to achieving excellence in T-SQL, providing all the necessary tools and knowledge to excel in the field of data management and query optimization.

Audience profile

This comprehensive course is meticulously designed for a diverse group of professionals, including database administrators, developers, data analysts, data scientists, and T-SQL practitioners.

Course Syllabus

Module 1: Query Processing principals

What is Transact-SQL?

Logical statement processing flow

Query compilation flow

Query optimization principals

Query Optimizer prerequisites

Query Execution process

Best Practices for SQL Query Plan Reuse

Module 2: Query Optimizer internals

Basic Terminology

The Cardinality Estimator (CE)

Upgrade to higher CE

Query optimization workflow

Query Optimizer hints

Module 3: Query Execution Plans internals

Query Execution Plan essentials

Query Plan operators

Query Plan level properties

Query Operator level properies

Module 4: Indexes for Query Performance

Understanding Predicates

Data Access using indexes

Indexing strategy with rowstore indexes

Index maintenance 

Module 5: Writing Optimized Queries

Queries Best Practices

Queries Pitfalls

Queries Anti-Patterns

Module 6: Performance Diagnostics Toolbox

Diagnostics using DMVs & DMFs

Extended Events

Query Plans comparative analysis

Query Store

Troubleshooting Live Queries

Ready to learn?

Our experts are ready to provide you this course  to enhance your's capabilities.

Get a quote          Courses List