Best for data fundamentals
This free, interactive SQL course covers SELECT queries, filtering with WHERE, sorting with ORDER BY, aggregate functions (COUNT, SUM, AVG, MIN, MAX), GROUP BY and HAVING, JOINs (INNER, LEFT, RIGHT, FULL), subqueries, CTEs, window functions, indexes, transactions, and database design — all by writing and running real SQL queries in your browser.
Who this is for
Complete beginners who want to learn how to query databases, developers who need to work with data in their applications, data analysts and data scientists, and engineers building stronger data skills.
What you'll build
Start here
What SQL is, how databases work, and your first SELECT query.
Full curriculum
What SQL is, how databases work, and your first SELECT query.
Filter rows with WHERE conditions, comparison operators, LIKE, IN, and BETWEEN.
Sort query results with ORDER BY and retrieve top N rows with LIMIT and OFFSET.
COUNT, SUM, AVG, MIN, MAX — summarize groups of rows into single values.
Combine data from multiple tables with INNER JOIN, LEFT JOIN, and RIGHT JOIN.
Modify data in your database — add rows, change values, and remove records safely.
Use the result of one SELECT query inside another — in WHERE, FROM, and SELECT clauses.
Write cleaner, readable queries with WITH clauses — reusable named subqueries.
SQL (Structured Query Language) is the universal language of data — every application that stores information uses it. Databases powered by SQL run at companies like Google, Amazon, Meta, and every bank, hospital, and e-commerce site on the planet. Knowing SQL is one of the most transferable skills in tech: it's required for software engineers, data analysts, data scientists, and product managers alike.
This free, interactive SQL course covers SELECT queries, filtering with WHERE, sorting with ORDER BY, aggregate functions (COUNT, SUM, AVG, MIN, MAX), GROUP BY and HAVING, JOINs (INNER, LEFT, RIGHT, FULL), subqueries, CTEs, window functions, indexes, transactions, and database design — all by writing and running real SQL queries in your browser.
8 topics · 25 hands-on lessons · all levels
Complete beginners who want to learn how to query databases, developers who need to work with data in their applications, data analysts and data scientists, and engineers building stronger data skills.