
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore how databases store data, how multiple users and applications generate sqls, and how a database management system prioritizes and secures sql requests to a server or cloud environment.
Explore the three SQL command families—data definition language, data manipulation language, and data query language—covering create, alter, drop, insert, update, delete, and select.
Learn SQL to talk to data stored in databases, as SQL is in high demand and an industry standard across tools like Power BI, Tableau, Kafka, Spark, and Synapse.
Step-By-Step guide is available in Lecture 1-9 Setup & Install SQL Server, SSMS & Databases
Please complete the following setup steps:
Download Main Course Content in Attachment sql-ultimate-course.zip
Download SQL Server Express: https://www.microsoft.com/en-us/sql-server/sql-server-downloads
Download SQL Server Management Studio (SSMS): https://learn.microsoft.com/en-us/ssms/install/install?view=sql-server-ver16
--------------------------------
Other Databases to practice SQL AdventureWorks sample database provided by Microsoft for learning and testing SQL Server features. https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16&tabs=ssms
-------------------------------
Important Note on Databases
The course files include datasets for multiple database systems (SQL Server, MySQL, PostgreSQL, etc.).
This course mainly focuses on SQL Server (which runs only on Windows).
On macOS you have two options:
Run SQL Server using Docker (recommended). Guide: https://swapnarana.notion.site/Run-Microsoft-SQL-Server-on-macOS-2ad4eefed93280c3868fe4c98fbcf8d9
2.Or use MySQL or Postgres. You will learn the same SQL concepts. Only some syntax differs, but the logic is identical.
Remember: always use the correct script for your database system. For example, run the /sqlserver/ scripts in SQL Server, and /mysql/ scripts in MySQL.
The goal of this course is to help you understand SQL concepts and how to apply them in real projects, regardless of the specific database.
Learn to use order by to sort SQL data, choosing ascending or descending, and apply nested sorting with multiple columns such as country and score.
Explore how the SQL top clause limits results by row count after select. Combine top with order by to fetch the highest or lowest scores and the most recent orders.
Learn how to alter an existing table to add a new column and drop a column, including defining a varchar(50) not null email and removing the phone column.
Use the update command to modify existing rows by setting new values and applying a where clause. Update single or multiple rows, handle null values, and verify with select.
Master the and operator by combining multiple where conditions, requiring both predicates to be true, as demonstrated with USA and score above 500 in the customers data.
Harness the not operator as a reverse, single-condition tool that excludes matching values and flips true to false. Learn its use with score not less than 500 and between operator.
Explore the SQL like operator to pattern search text with % and _, including starts with, ends with, and contains. See examples filtering customers by first name.
Learn how to join two tables with sql joins, using left and right tables, apply set operators for stacked rows, data enrichment with master and lookup tables, and existence checks.
Learn how a full join returns all rows from both tables, including unmatched rows with nulls, and that the order of tables doesn't matter, unlike inner, left, or right joins.
Use the cross join to generate every possible combination of two tables, creating a Cartesian join result, suitable for test data or simulations, such as customers with orders.
Compare inner, left, full joins and left anti-join to handle matching, all, or unmatching data, and discover why left join is the favored choice.
Explore the syntax of set operators in SQL, combining two selects with union and others. Remember end order by placement and ensure matching column counts and data types.
Learn how the union operator combines two queries into one results set, removing duplicates and mapping fields like first name and last name from customers and employees.
Learn how the SQL except operator returns distinct rows from the first query that are not found in the second, with the order of queries shaping the result.
Learn how the SQL intersect operator returns only the rows common to two queries, eliminating duplicates, with practical examples showing common employees and customers.
Learn to manipulate strings by grouping functions, then use concat to combine first name and country into one name country column with a space; explore upper, lower, replace, and substring.
Master the SQL replace function to swap old values for new ones, remove characters by replacing with nothing, and apply changes to dashes and file extensions.
Master the sql len function to count characters in strings, numbers, and dates, returning a numeric length for any value, and learn how left and right extract parts of string.
Explore SQL string manipulation with left (lift) and right functions to extract characters from the start or end of values, using trim and substring techniques.
Learn to format dates and numbers in sql using the format function. Build custom date formats, culture-aware styles, and practical examples for reporting and aggregations.
Learn to use the SQL convert function to cast data types and format values with style options, with examples like string to integer and date time to date.
Learn how the cast function converts values between data types using the as syntax, with examples from string to integer and string to date, and compare with convert and format.
For now, just understand what DATEDIFF returns. The LAG part will make much more sense later when we deep dive into Window Functions in Section 15.
Discover how the isdate function validates values as dates, returning 1 for valid dates and 0 for invalid ones, and how to use it for data cleaning and safe casting.
Explore is null and coalesce in SQL, replacing nulls with a default or another column, understand first non-null value, compare two-value isnull with multi-value coalesce, and note cross-database behavior.
Learn to handle nulls before math operations using coalesce or Isnull, build safe full names by concatenating first and last names, and apply a ten-point score bonus.
Learn to handle nulls in join keys with coalesce or Isnull to avoid missing records when joining tables; replace nulls with a default value to ensure accurate results.
Learn how to use is null and is not null to test for missing values, and apply isnull with joins to find missing data such as scores or orders.
The most visual and complete SQL course on the internet — built by a real data professional.
This isn’t your average SQL course with boring slides and textbook examples.
This is a fully animated, hands-on SQL bootcamp where you’ll not only learn how to write SQL — you’ll actually see how SQL works behind the scenes through 200+ custom-made animations, hand-drawn to help you truly understand each concept at its core.
This course is based on over 17 years of real-world experience working with data at top global companies like Mercedes-Benz and Bosch. Every lesson, project, and topic comes directly from real enterprise use cases — not academic theory.
Whether you're an absolute beginner or someone looking to level up, this course is designed to take you from zero to hero in SQL.
If you’ve never written a line of SQL, don’t worry - everything is explained from scratch, step by step. You’re not too old or too young — SQL is one of the easiest and most rewarding skills you can learn.
What makes this course truly unique:
200+ visual animations that make even complex SQL concepts easy to understand
Built by a senior data expert with over 17 years in the industry — not a generic instructor
Real-world projects based on tasks I’ve personally handled in enterprise environments
Covers everything in SQL — from the absolute basics to advanced topics like Window Functions, CTEs, Query Optimization, SQL Warehousing, and Advanced Analytics
Practice with real scenarios to go from beginner to job-ready with confidence
Topics covered in this complete course :
Introduction: Learn what SQL is, why it matters, how databases work, and how to set up your full SQL environment.
Querying Data (SELECT): Master SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, DISTINCT, TOP, and query execution order.
Data Definition (DDL): Create, modify, and remove database objects using CREATE, ALTER, and DROP commands.
Data Manipulation (DML): Add, update, and delete records using INSERT, UPDATE, and DELETE with real-world logic.
Filtering Data: Use comparison and logical operators like AND, OR, NOT, BETWEEN, IN, and LIKE to filter data effectively.
Combining Data: Join and merge tables using INNER, LEFT, RIGHT, FULL, CROSS joins and SET operations like UNION, INTERSECT.
Row-Level Functions: Use string, numeric, date, null-handling functions, and CASE expressions to transform your data.
Aggregation & Analytics: Apply aggregate functions and advanced window functions like RANK, DENSE_RANK, LAG, and LEAD.
Advanced SQL Techniques: Work with subqueries, CTEs (recursive and non-recursive), views, temp tables, procedures, and triggers.
Performance Optimization: Improve query speed using indexes, partitions, and practical performance tips.
AI & SQL: Use ChatGPT and GitHub Copilot to generate, explain, optimize, and debug SQL — plus translate and document code.
Hands-On Projects for Real Experience:
Watching tutorials is not enough – that’s why this course is packed with practical projects so you can immediately apply your new skills in real-world scenarios. Each project is designed to mirror actual work done by professionals:
SQL Data Warehouse: Design and implement a full-scale SQL data warehouse from scratch, just like you would in a real enterprise environment.
SQL for Data Analysis (EDA): Use SQL to perform exploratory data analysis on real datasets, extracting insights and creating reports as a data analyst would.
Advanced Query Optimization: Tackle complex query challenges and practice performance tuning on large datasets to simulate high-pressure, real-world scenarios.
Important Note on Databases
The course files include datasets for multiple database systems (SQL Server, MySQL, PostgreSQL, etc.).
This course mainly focuses on SQL Server (which runs only on Windows).
If you’re on Mac, you can still follow along by using MySQL or PostgreSQL — the SQL concepts are the same.
The goal of this course is to help you understand SQL concepts and how to apply them in real projects, regardless of the specific database.
By completing these projects, you'll translate theory into practice. You’ll not only reinforce your learning, but also build a portfolio of job-ready examples to show future employers.
Don't miss out on the chance to master SQL, the skill that will set you apart in the job market and propel your career to new heights. Enroll now and unlock the potential of your data with SQL expertise!