Build
SQL
Changes the SQL that is generated and the checks. Your query is kept.
Query structure
The order a database works through this query, which differs from the order it is written. Select a step to edit it.
Query flow
How the parts of the query feed each other: CTEs, derived tables, subqueries and UNION parts above the part that uses them, each with where it filters, groups and sorts. Select a part to edit it.
Tables and joins diagram
The main query's tables and how its ON conditions link them. Select a link to edit that join.
Checks
Text only here: the builder writes SQL; it never connects to a database server, and nothing you type leaves your browser. To try SQL on your own data, use SQL Lab, which runs it in a database kept on this device. Review generated SQL before running it on a real database.
Library
Exercises with a goal, hints and a model answer. Checks look at how your query is built; nothing is run.