Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
The Complete SQL Course - Learn by Doing - SQL Server
Rating: 4.7 out of 5(3,238 ratings)
10,651 students

The Complete SQL Course - Learn by Doing - SQL Server

Master SQL and Database Design in this SQL Bootcamp - Use Advanced Queries for Data Analysis and Analytics - SQL Server
Created byDaniel Tait
Last updated 1/2026
English
English [Auto],

What you'll learn

  • How to write accurate SQL queries against a database
  • Use SQL to perform data analysis
  • Learn to perform GROUP BY Statements
  • Learn how to join multiple tables - including complex joins
  • Learn how to use window functions, correlated subqueries, set operators, CTEs and much more
  • Best practices in SQL
  • Replicate real-world situations and query reports
  • How to create tables, views and stored procedures
  • How to make your queries run faster by making them sargable
  • Be comfortable putting SQL and SQL Server on your resume

Course content

7 sections114 lectures13h 23m total length
  • Introduction2:42
  • Understanding the Foundations of SQL7:43

    Explore the foundations of SQL by linking the relational model, set theory, and predicate logic to tables' attributes and rows while emphasizing primary keys and set-based operations.

  • SELECT Statement8:55
  • Overview of SQL Server3:05
  • Windows - How to Setup SQL Server and SSMS on a Windows Computer7:06

    Install SQL Server Express and SQL Server Management Studio on Windows, using an administrator account. Download from microsoft.com and note the Sqlexpress instance for the next lesson.

  • Windows - How to Setup the SAMPLEDB Database on Windows Computer10:20
  • MacOS - How to set up SQL Server Database on a Mac Computer using Docker25:45

    Covers how to download and install SQL Server on a Mac using Docker. Also covers, how to download and install Azure Data Studio and how to create the SAMPLEDB database using Azure Data Studio.

  • Overview of the Course Challenges3:25
  • SELECT Challenges2:21
  • Solutions to the SELECT Challenges4:20
  • SELECT DISTINCT Statement5:16
  • SELECT DISTINCT Challenges1:32
  • Solutions to the SELECT DISTINCT Challenges3:18
  • Row Ordering - ORDER BY8:24
  • Filtering Data with TOP5:34

    Use SQL Server's top to limit results and order by order_date to fetch the most recent orders, using with ties or a tiebreaker such as order_id for determinism.

  • ORDER BY Challenges2:47
  • Solutions to the ORDER BY Challenges5:25

    Explore how to use order by to sort employees by last_name ascending, salary descending, hire_date descending, and department_id, including top with ties.

  • WHERE Clause - Three-valued Logic5:09

    Explore the where clause and three-valued logic, using nulls to represent unknown data, and learn to filter with is null, =, and <> combined by or.

  • Replacing Nulls in Queries11:00
  • WHERE Clause - Comparison Operators4:14

    Explore the where clause by applying comparison operators—equals, not equals (<> and !=), in, less than, greater than, between (inclusive)—demonstrated with price queries.

  • WHERE Clause Challenges2:21

    Practice the where clause to filter data, including products priced over 100 and orders not yet shipped. Learn date filtering with literals like 2020-02-26 and 2020-01-01 to compare dates.

  • Solutions to the WHERE Clause Challenges4:00
  • Introduction to Collations and Pattern Matching8:49
  • Pattern Matching - Part 25:35
  • Introduction to Character Data Types5:54

    Introduce character data types in SQL Server, including varchar, nvarchar, fixed-length char and nchar, and explain information_schema.columns, maximum and octet lengths, plus explicit versus implicit conversion.

  • Pattern Matching Challenges1:14

    Master pattern matching in SQL with like and percent wildcard. Tackle challenges: countries starting with a letter, earliest gmail customers, product names containing mounts, earliest products ending in a number.

  • Solutions to the Pattern Matching Challenges3:12

    Explore pattern matching in SQL Server through practical challenges. Filter countries starting with n, Gmail addresses, product names containing the word mouse, and product names ending with a number.

  • Introduction to Aggregate Functions6:09
  • GROUP BY and Aggregate Functions6:26

    Learn to write grouped queries using group by and aggregate functions to compute totals and counts by zone, occupied status, and combinations, handling nulls correctly.

  • HAVING Clause4:56
  • Logical Query Processing Order7:58
  • GROUP BY Challenges2:20

    tackle five group by challenges in sql server, using count and avg with group by to summarize department totals, warehouse on-hand, and most recent population counts by locality and species.

  • Solutions to the GROUP BY Challenges11:58
  • AND operator2:52

    Using the and operator, the query returns only rooms where room style is single and window view is ocean, returning rooms one and three in the hotel example.

  • OR operator2:56
  • Operator Precedence4:23

    Explore sql operator precedence, mastering how and, or, and parentheses influence query results and how grouping with parentheses changes which rows are returned.

  • IN Operator3:19
  • Logical Operator Challenges2:14
  • Solutions to the Logical Operator Challenges6:15

    Solve SQL logical operator challenges by filtering employees in Seattle or Sydney, combining conditions with and/or, enforcing precedence with parentheses, and excluding products in categories 1, 2, or 5.

Requirements

  • You will need to have a Windows-based computer to download and run Microsoft SQL Server.
  • This course is suitable for everyone who has a desire to learn and advance in their career. No prior SQL knowledge is needed.

Description

Learn how to write effective and accurate SQL with this course!

You will learn how to read and write complex SQL queries in a relational database (SQL Server). The skills you will learn are also largely applicable to any other major database system, such as MySQL, PostgreSQL, Oracle Database, and much more.

Knowing how to write SQL is one of the fastest ways to reach your career goals. This is because SQL is consistently the most in-demand skills in the tech sector. SQL can seem simple at first but it can quickly become complicated. It is common for people to a write SQL query without realizing they are getting an incorrect result returned. This course is designed with a focus on accuracy and understanding. You will learn how to avoid the common mistakes people make when writing SQL. Not only that.. but you will get a visual guide to the SQL language by seeing how queries work step-by-step. This is a complete course which covers all the core skills you need to master the SQL language.

I believe that the best way to learn SQL is by writing lots of SQL. For that reason, this course includes over 80 coding challenges where you get to write SQL queries and create database objects. These challenges are based on real-world scenarios and are designed for optimal understanding.


In this course you will learn everything you need to master SQL! Including:

  • Get started with SQL Server and SSMS, two of the world's most popular SQL tools

  • How to install SQL Server on Windows and Mac-OS computers

    • Note: that Mac users will need to use Azure Data Studio rather than SSMS

  • Learn how to do data analysis and data analytics using SQL. Including advanced query techniques

  • Start by learning the fundamentals of the relational model and SQL language

  • Analyzing data using aggregate functions with the GROUP BY command

  • Writing advanced queries with string and date functions

  • Learn to use logical operators to add logic flow to your SQL queries

  • Learn how to write both self-contained and correlated sub queries

  • Learn how to join data by using the different types of JOIN commands

  • Learn how to do more advanced joins such as joining more than two tables and joining on multiple columns

  • Learn to create tables and integrity constraints

  • How to update, insert and delete data

  • How to create indexes

  • How to make your queries run faster by making them SARGable

  • Learn to write advanced SQL such as stored procedures, window functions, and common table expressions

  • Bonus section on Database Design - includes data normalization up to and including Boyce-Codd Normal Form.

  • and much, much more!

This course is one that puts you in control. Where you get to write SQL throughout the course, instead of watching someone else code. Every section comes with fresh challenges, modeled after real-world tasks and situations.

This comprehensive course allows you to learn at your own pace through an interactive environment.  You will start with the basics and soon find yourself writing advanced SQL queries.

Who this course is for:

  • Anyone interested in learning SQL or data analysis!
  • Those who are interested in working with SQL Server. This course uses Microsoft SQL Server and T-SQL (Microsoft SQL) variant of the SQL language.
  • If you work in: marketing, finance, local government, accounting, operations, sales, manufacturing, healthcare, financial services, or any other industry/function that collects data
  • Someone who wants to learn skills that give them the potential to earn a high salary and have a rewarding career