The Advanced SQL Server Masterclass For Data Analysis

Take your SQL skills – and your career – to the next level
The Advanced SQL Server Masterclass For Data Analysis
File Size :
2.22 GB
Total length :
7h 9m



Travis Cuzick


Last update

Last updated 11/2022



The Advanced SQL Server Masterclass For Data Analysis

What you’ll learn

Installing SQL Server and SQL Server Management Studio
Window Functions
Correlated Subqueries
Advanced filtering with EXISTS and NOT EXISTS
Flattening data with PIVOT
Generating data series with Recursive CTEs
Leveraging CTEs and temporary tables to break complex processes into manageable steps
Defining and manipulating tables with DDL and DML commands
Designing lookup tables to simplify redundant analysis
SQL optimization techniques, including indexes
Procedural programming techniques like variables and IF statements
Defining your own SQL functions
Creating stored procedures for flexible, repeatable analysis
Supercharge your SQL knowledge with procedural programming techniques like variables and IF statements
Writing code that writes code, with Dynamic SQL

The Advanced SQL Server Masterclass For Data Analysis


A working knowledge of SQL fundamentals – including SELECT statements, applying criteria, table joins, and aggregate queries – is necessary for success in this course
Microsoft SQL Server 2019 and SQL Server Management Studio; these are both available for free, and I’ll walk you through installation and setup
Access to a Windows operating system (SQL Server only runs on Windows)
Specific knowledge of SQL Server is helpful, but not required


Do you already know the basics of SQL, but sometimes get frustrated when you encounter situations where the basics just aren’t enough?Are you a junior analyst who wants to level up to advanced SQL so you can take the next step in your career?Or maybe you’re a data scientist who knows enough SQL to get by, but want to take your skills further so you can spend less time wrangling data and more time building models.If any of these sound like your situation, then you’re in the right place. This course on advanced SQL for data analysis  has everything that isn’t covered in introductory SQL courses.The curriculum goes DEEP, spanning all the advanced techniques you’ll ever need to wrangle and analyze data in the fastest and most efficient way possible.And these concepts aren’t presented in isolation; everything is taught in the context of real-world analytics scenarios, meaning you’ll be ready to apply these techniques on the job from day one.Here’s a look at just some of the things you’ll get out of this course:Make the leap to Senior Analyst by mastering advanced data wrangling techniques with SQLBecome the resident SQL expert on your teamPerform nuanced analysis of large datasets with Window FunctionsUse subqueries, CTEs and temporary tables to handle complex, multi-stage queries and data transformationsWrite efficient, optimized SQLLeverage indexes to speed up your SQL queriesSupercharge your SQL knowledge with procedural programming techniques like variables and IF statementsProgram database objects like user defined functions and stored procedures that will make life easier for you AND your teammatesMaster useful tips and tricks not found in most database courses, like Dynamic SQLGain an intuition for what technique to apply and whenTrain your brain with tons of hands-on exercises that reflect real-world business scenariosWhat makes this course differentThere are three things that really set this course apart.First is its scope. We’ll dig deep into the advanced toolbox that SQL has to offer, uncovering techniques to solve problems that leave even senior analysts scratching their heads.Second is a relentless focus on that practical, real-world applications. Techniques are taught not as abstract concepts, but rather as solutions to common data wrangling and analytics problems. And whenever possible, these techniques are presented, not in isolation, but in combination with other things that have already been covered. This “spiral” approach reinforces concepts you’ve learned so they stay with you long after taking the course.Finally, and most importantly, the course provides a treasure trove of coding exercises that give you ample opportunity for hands-on practice. And these exercises are distributed throughout the course – not clustered together after hours of videos. This means you’ll have an opportunity to practice every concept you learn, right after you learn it.So if you want to go from SQL apprentice to SQL master, enroll today. I look forward to seeing you in the course.


Section 1: Before we start coding…

Lecture 1 Introduction

Lecture 2 Installing SQL Server 2019 Express

Lecture 3 Installing SQL Server Management Studio

Lecture 4 Downloading the AdventureWorks Sample Database

Lecture 5 Course Environment Walkthrough

Section 2: Advanced Analysis With Window Functions

Lecture 6 Introducing Window Functions With OVER

Lecture 7 Introducing Window Functions With OVER – Exercises


Lecture 9 PARTITION BY – Exercises

Lecture 10 ROW_NUMBER

Lecture 11 ROW_NUMBER – Exercises

Lecture 12 RANK and DENSE_RANK

Lecture 13 RANK and DENSE_RANK – Exercises

Lecture 14 LEAD and LAG

Lecture 15 LEAD and LAG – Exercises

Lecture 16 Introducing Subqueries

Lecture 17 Introducing Subqueries – Exercises

Section 3: Subqueries

Lecture 18 Scalar Subqueries

Lecture 19 Scalar Subqueries – Exercises

Lecture 20 Correlated Subqueries

Lecture 21 Correlated Subqueries – Exercises

Lecture 22 EXISTS

Lecture 23 EXISTS – Exercises

Lecture 24 FOR XML PATH With STUFF

Lecture 25 FOR XML PATH With STUFF – Exercises

Lecture 26 PIVOT – Part 1

Lecture 27 PIVOT – Part 2

Lecture 28 PIVOT – Exercises

Section 4: Common Table Expressions (CTEs)

Lecture 29 CTEs – Part 1

Lecture 30 CTEs – Part 2

Lecture 31 CTEs – Exercise

Lecture 32 Recursive CTEs

Lecture 33 Recursive CTEs – Exercises

Section 5: Temp Tables

Lecture 34 Temp Tables – Part 1

Lecture 35 Temp Tables – Part 2

Lecture 36 Temp Tables – Exercises

Lecture 37 CREATE and INSERT

Lecture 38 CREATE and INSERT – Exercise

Lecture 39 TRUNCATE – Part 1

Lecture 40 TRUNCATE – Part 2

Lecture 41 TRUNCATE – Exercise

Lecture 42 UPDATE – Part 1

Lecture 43 UPDATE – Part 2

Lecture 44 UPDATE – Exercise

Lecture 45 DELETE

Section 6: Optimization

Lecture 46 Optimizing With UPDATE – Part 1

Lecture 47 Optimizing With UPDATE – Part 2

Lecture 48 Optimizing With UPDATE – Exercise

Lecture 49 An Improved EXISTS With UPDATE

Lecture 50 An Improved EXISTS With UPDATE – Exercise

Lecture 51 Introducing Indexes

Lecture 52 Optimizing With Indexes – Example

Lecture 53 Optimizing With Indexes – Exercise

Lecture 54 Lookup Tables – Part 1

Lecture 55 Lookup Tables – Part 2

Lecture 56 Lookup Tables – Exercises

Section 7: Programming SQL

Lecture 57 Variables – Part 1

Lecture 58 Variables – Exercise 1

Lecture 59 Variables – Part 2

Lecture 60 Variables – Exercise 2

Lecture 61 Introducing User Defined Functions


Lecture 63 Making Functions Flexible With Parameters

Lecture 64 User Defined Functions – Exercises

Lecture 65 Stored Procedures

Lecture 66 Stored Procedures – Exercise

Lecture 67 Control Flow With IF Statements

Lecture 68 Control Flow With IF Statements – Exercise

Lecture 69 Using Multiple IF Statements

Lecture 70 Using Multiple IF Statements – Exercise

Lecture 71 Dynamic SQL – Part 1

Lecture 72 Dynamic SQL – Part 2

Lecture 73 Dynamic SQL – Exercises

Data Analysts or BI Professionals wanting to “make the leap” to Senior Analyst/Developer,Data Scientists who aspire to stand out from their peers by going beyond the basics in SQL,Job seekers who want to turbocharge their resumes with advanced SQL skills,Students seeking a comprehensive but practical pathway to SQL mastery,Anyone who wants to take their SQL data analysis skills to the next level

Course Information:

Udemy | English | 7h 9m | 2.22 GB
Created by: Travis Cuzick

You Can See More Courses in the Business >> Greetings from

New Courses

Scroll to Top