
Set up an online SQL environment and load a sample dataset to start practicing.
Learn the core foundation of SQL. Understand how to retrieve data from a database table using the SELECT and FROM clauses.
Put your knowledge into action. Practice writing basic SELECT and FROM queries to retrieve specific columns and tables.
Discover how to filter your database results using the WHERE clause and logical operators to return only the rows you need.
Hands-on practice exercises to solidify your skills in filtering data using various WHERE conditions.
Learn how to combine multiple filtering conditions using AND and OR to create more precise SQL queries.
Practice combining multiple conditions with AND and OR to retrieve exactly the data you need.
Learn how to use IN to match multiple values and BETWEEN to filter values within a specific range.
Practice using IN and BETWEEN to write cleaner and more efficient filtering conditions.
Learn how to use LIKE and wildcard characters to search for text patterns instead of exact values.
Practice using LIKE and wildcards to find values that match different text patterns.
Learn what NULL represents in SQL and how to find missing or non-missing values using IS NULL and IS NOT NULL.
Practice identifying and filtering NULL values using IS NULL and IS NOT NULL.
Learn how to organize and sort your query output in ascending or descending order using the ORDER BY clause.
Practice sorting single and multiple columns using ORDER BY ASC and DESC options.
Understand how to use the AS keyword to rename columns and tables temporarily for cleaner, more readable query results.
Practice renaming output columns using column aliases in SQL queries.
Master basic aggregate functions to sum numeric values (SUM) and count database records (COUNT).
Practice calculating totals and counting records with practical SQL exercises.
Learn how to calculate the average value of a numeric column using the AVG function.
Hands-on practice for computing average values across different datasets.
Discover how to extract the lowest and highest values from a dataset using MIN and MAX functions.
Practice identifying minimum and maximum values in real-world database scenarios.
Learn how to restrict the number of rows returned by a query using the LIMIT clause for faster and cleaner output.
Practice applying the LIMIT clause to extract top results and top-N rows from tables.
Learn how to filter out duplicate rows and retrieve only unique values using the DISTINCT keyword.
Practice extracting unique lists of entries using DISTINCT across different data columns.
Understand how to group rows with identical values using GROUP BY and apply aggregate functions per group.
Hands-on practice exercises to master grouping data and aggregating results by categories.
Learn the difference between WHERE and HAVING, and master filtering aggregated data groups.
Practice applying conditions to aggregated data groups using the HAVING clause.
An overview of relational databases and how table relationships work through primary and foreign keys.
Learn how to combine data from multiple tables based on matching key values using INNER JOIN.
Hands-on practice queries for joining multiple tables together using INNER JOIN.
Learn how LEFT JOIN keeps all rows from the left table, even when no matching record exists in the right table.
Practice using LEFT JOIN to find matching records while also keeping unmatched rows from the left table.
Get ready for the final challenge by setting up a completely new dataset that you'll use to test your SQL skills independently. Downloadable setup files are included in the lecture resources.
Apply your filtering and sorting skills to a new dataset using concepts such as WHERE, AND, IN, BETWEEN, LIKE, ORDER BY, and LIMIT. A downloadable version of the challenge is included in the resources.
Use COUNT, SUM, AVG, MIN, and MAX to answer practical questions and calculate useful information from the challenge dataset. A downloadable version is included in the resources.
Put your grouping skills to the test by summarizing data with GROUP BY and filtering aggregated results with HAVING. You can also download the challenge from the lecture resources.
Combine customer and order data using INNER JOIN and LEFT JOIN to solve realistic multi-table SQL problems. A downloadable version of the challenge is included in the resources.
Compare your work with the reference solutions, review different approaches, and identify any concepts you may want to practice again. Downloadable solutions are included in the lecture resources.
Learn how AI can support your SQL workflow, where it can save time, and why AI-generated queries still require human understanding and verification.
See how AI can generate SQL from a natural-language request and learn why a query that looks convincing may still contain incorrect assumptions.
Learn how to write better SQL prompts by providing table structures, relationships, expected outputs, filters, and other important database context.
Use AI to identify and explain mistakes in SQL queries, and learn why understanding the problem is more valuable than simply copying corrected code.
Learn how to use AI as an SQL learning assistant to break down queries, explain individual clauses, and answer follow-up questions about SQL logic.
Learn a practical process for checking AI-generated SQL, including table names, JOINs, filters, aggregations, grouping, and the final query results.
Put your skills into practice by solving an SQL challenge yourself, comparing your approach with an AI-generated solution, and verifying the results.
Review the key best practices for working with AI and SQL, from writing effective prompts and debugging queries to verifying results and protecting sensitive data.
Congratulations on completing the course! Review what you've learned and get ready to continue building your SQL skills through real-world practice.
Want to learn SQL quickly without spending hours on unnecessary theory?
This beginner-friendly course takes you from your first SQL query to practical data analysis, JOINs, SQL challenges, and modern AI-assisted workflows.
You'll learn SQL by doing. Short explanations are followed by hands-on exercises, quizzes, datasets, and challenges so you can practice each new skill immediately.
And unlike a traditional beginner SQL course, you'll also learn how to use AI without blindly trusting it.
You'll generate SQL with AI, write better prompts, debug queries, understand unfamiliar SQL, and — most importantly — verify whether AI-generated SQL is actually correct.
No previous SQL, programming, database, or AI experience is required.
WHAT YOU'LL LEARN
By the end of this course, you'll be able to:
Write SQL queries using SELECT and FROM
Filter data with WHERE, AND, OR, IN, BETWEEN, and LIKE
Work correctly with NULL values
Sort query results using ORDER BY
Create clearer query results with aliases
Analyze data using SUM, COUNT, AVG, MIN, and MAX
Use LIMIT and DISTINCT
Summarize data using GROUP BY
Filter grouped results using HAVING
Combine multiple tables using INNER JOIN and LEFT JOIN
Solve practical SQL challenges independently
SQL SKILLS FOR THE AI ERA
AI can generate a SQL query in seconds.
Knowing whether that query is actually correct is what really matters.
That's why this course doesn't teach you to blindly copy AI-generated SQL. You'll learn to understand it, debug it, verify it, and stay in control of the query yourself.
You'll learn how to:
Generate SQL queries with AI from natural-language requests
Write better AI prompts using tables, columns, relationships, and database context
Use AI to debug SQL and understand what went wrong
Ask AI to explain unfamiliar SQL step by step
Identify assumptions and potential mistakes in AI-generated queries
Verify JOINs, filters, aggregations, grouping, and query logic
Run and sanity-check AI-generated results before trusting them
Compare your own SQL solution with an AI-generated approach
You'll also complete an AI SQL Challenge: You vs. AI, where you'll put this workflow into practice.
LEARN SQL BY DOING
This isn't a course built around watching hours of theory.
You'll learn through:
Hands-on SQL exercises
Practice after new concepts
Knowledge-check quizzes
Downloadable SQL files and datasets
A multi-part Final SQL Challenge
Practical AI + SQL demonstrations
A You vs. AI SQL Challenge
An AI + SQL Best Practices Cheat Sheet
Resources are included throughout the course so you can easily follow along without searching for the files or datasets you need.
START WITH SQL. THEN MAKE AI MORE USEFUL.
AI can generate a query in seconds.
But to use that query confidently, you need to understand what it does, recognize when something looks wrong, and know how to verify the result.
Start from zero, build practical SQL skills through hands-on practice, and learn how to use AI as an SQL assistant — not as a replacement for understanding SQL.