SQL Query Builder Database Tools Local in browser
SQL Query Builder
Design complex database queries visually with our intuitive drag-and-drop interface
Unlimited Canvas
Build queries of any complexity with our infinite canvas workspace
Multi-Table Queries
Add more tables and the SELECT joins them on the first table's id; check the ON clause against your keys
Real-time SQL
Watch your SQL query update in real-time as you build visually
Copy or Download
The SQL is plain text: copy it or download a .sql file and run it in your database client
Quick Start Guide
Choose Query Type
Select the type of SQL query you want to build from the top bar
Add Tables
Drag tables from the left sidebar onto the canvas
Pick Columns
Click a table on the canvas, then choose its columns and an alias in the Properties tab
Add Your Conditions
The query ends with WHERE 1 = 1: replace it with your own conditions after you copy the SQL
Frequently Asked Questions
There is no fixed limit: add as many tables as your query needs.
You can save them: press Execute or Ctrl+S and the current query is kept in your browser's local storage and listed in the History tab in the right sidebar. Copy and Download export the SQL. A saved query cannot be loaded back onto the canvas.
Only one kind of join. Every table after the first is joined with INNER JOIN on first_table.id = table.first_table_id (for example users.id = orders.users_id). Other join types, other join columns, subqueries and CTEs have to be written by hand after you copy the SQL.