Learn SQL

Free SQL guides, practice sets, and explainers — from basic queries to advanced techniques.

Whether you're a complete beginner or preparing for a data analyst interview, these resources cover the SQL concepts and query patterns that come up most in the real world.

15 SQL JOIN Practice Problems with Solutions 15 beginner-friendly JOIN exercises covering INNER JOIN, LEFT JOIN, and multi-table JOINs with full solutions and explanations. 15 SQL GROUP BY Practice Problems with Solutions 15 beginner-friendly GROUP BY exercises covering COUNT, SUM, AVG, HAVING, and ORDER BY with full solutions and explanations. 20 SQL Practice Problems for Beginners with Solutions 20 beginner SQL problems covering SELECT, WHERE, ORDER BY, LIMIT, and COUNT — with plain-English explanations for every solution. 15 SQL WHERE Clause Practice Problems with Solutions 15 beginner-friendly WHERE clause problems covering text filtering, numeric comparisons, combining with ORDER BY, and AND/OR conditions. 15 SQL Subquery Practice Problems with Solutions 15 intermediate subquery problems covering WHERE with comparison operators, IN and NOT IN, and subqueries in FROM as derived tables.

Looking for interactive practice? Head back to the SQL Drills homepage to write and submit real queries with instant feedback.