Local SQL builder
Build a query, one step at a time.
Create common SELECT, JOIN, data-change, and aggregate statements without memorizing the syntax. The builder only generates text; it does not connect to a database or run your query.
Query builder
Choose a query type
Aliases a and b are added automatically. Right and full outer joins are not supported by every database.
The WHERE filter below is strongly recommended to avoid updating every row.
DELETE without a WHERE condition removes every row from the table. Add a filter and review the query carefully.
COUNT, SUM, AVG, MIN, and MAX are common SQL aggregate functions. Aggregation rules and data types can differ across database engines.
Choose a query type and generate a statement.
Generated locally
SQL statement
Generated text is not executed or sent anywhere.