A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the SQL Query Builder page

ツール / Build suite

SQL Query Builder

Build SELECT queries visually - tables, columns, joins, filters, ordering, limits - and copy the SQL.

Pick the tables, tap the columns, set the filters. Clean, correct SQL assembles itself as you work, with joins wired by matching key names.

Open the tool
Screenshot of the SQL Query Builder tool

What it does

What it does.

Visual table and column picking

Name your tables and columns; the SELECT and FROM clauses assemble live. Or describe the query in plain English and get a SELECT written against your schema.

Joins by matching keys

Add a second table and the likely join condition is proposed from column names; edit it inline.

Filters, order, limits

WHERE conditions, ORDER BY and LIMIT are guided fields, not syntax you recall.

Dialect-clean output

Choose Postgres/SQLite, MySQL or SQL Server: identifiers are quoted the right way and LIMIT becomes TOP where needed.

Plain English in, SQL checked

Describe the result in a sentence and the assistant drafts the SELECT, checked against the tables and columns you defined. SELECT only, by rule.

Three dialects out

Standard (Postgres and SQLite), MySQL or SQL Server. Identifiers quote and limits phrase the way the dialect expects.

Joins by matching keys

Add a join by picking two tables and the columns that match. The ON clause writes itself.

Seven comparison operators

Equals, not equals, greater, less, at-least, at-most and LIKE cover the filters real reporting needs.

Review notes under the SQL

A note appears when a column is not in your schema, a table is not in FROM or a JOIN, or a join you edited by hand is kept as typed.

Order and limit, spelled out

Type the ORDER BY and a numeric LIMIT, so the top-10 report is a form, not a query.

Copy-clean output

The SQL renders formatted and copies in one click, ready for your console or migration file.

Honest assistant errors

If the plain-English draft names columns you never defined, a note lists them instead of passing them silently.

How it works

How to use it.

Step 1

Define tables and the columns you want back.

Step 2

Add joins and filters with the guided controls.

Step 3

Copy the SQL into your client or migration.

Step 4

Define your tables and the columns each one has.

Step 5

Tick the columns to return and add joins by their matching keys.

Step 6

Add filters, ordering and a limit.

Step 7

Pick a dialect, then write the SQL or ask the assistant from plain English, and copy it.

FAQ

Which dialects?

Standard SQL output that runs on Postgres, MySQL, SQLite and SQL Server with at most identifier-quote tweaks.

INSERT/UPDATE?

The builder focuses on SELECT, the query people reach for help with. Write-side statements are not covered.

Is my schema uploaded?

No. Everything assembles in your browser tab.

Can it UPDATE or DELETE?

No. The builder and the assistant produce SELECT queries only. Reading data is the job; changing it stays in your hands.

Which dialects are supported?

Standard SQL as Postgres and SQLite read it, plus MySQL and SQL Server variants for quoting and row limits.

Does it connect to my database?

No. It never sees your data. You describe the schema by typing table and column names, and the SQL builds locally.

What does the AI assistant do exactly?

It turns one plain-English sentence into a SELECT using only your defined tables and columns, one request per press, and it is checked before shown.

What does it warn about?

Columns missing from your schema, tables not in FROM or a JOIN, and join conditions you edited by hand. The SQL still shows, so read the note before you run it.

What if my filter needs OR?

Filters combine with AND in the builder. For OR logic, copy the SQL and adjust the WHERE clause by hand.

Is my schema uploaded?

The visual builder is fully local. Only when you press the assistant button does your schema text go in one request; nothing is stored.

Do I need to know SQL?

No. You pick tables, columns and conditions; the query writes itself in standard SQL.

Does it run the query?

No. It builds the statement for you to copy into your own database client.

Open SQL Query Builder

Worked example

Real output, from the tool itself.

This is what SQL Query Builder returned for its built-in example input, captured from the tool itself.

You enter

Input

users: id, name, email, created_at
orders: id, user_id, total, status

From

users

Input

orders

Input

orders.user_id = users.id

Input

orders.status

Input

=

Input

'shipped'

Order by

orders.created_at DESC

Limit

100

The tool returns

SELECT
  users.name,
  orders.total
FROM users
JOIN orders ON orders.user_id = users.id;
Try it with your own input

More in the Build suite

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the SQL Query Builder page

Try it now.

SQL Query Builder runs in your browser. No account needed.

Authored Tiles

What is on the page

Tables box, one table perlineFrom menu and joinsColumn tick listFilters, order and limit
Tables box, one table per lineFrom menu and joinsColumn tick listFilters, order and limit
Choices on the left, the query on the right.

Pipeline

Building a query

List your tablesand columnsChoose the FromtableAdd joins, columnsand filtersRead and copy theSQL
List your tables and columnsChoose the From tableAdd joins, columns and filtersRead and copy the SQL
Everything updates as you click.

Before After

The starting query

ChoiceIn the SQLTicked columnsFrom tableJoined tableSemicolonSELECT users.name andorders.totalFROM usersJOIN orders ONorders.user_id = users.idThe query ends with ;
Choice to In the SQLTicked columnsSELECT users.name and orders.totalFrom tableFROM usersJoined tableJOIN orders ON orders.user_id =users.idSemicolonThe query ends with ;
The page opens with two tables and two ticked columns.

Before After

How a join is guessed

TablesON textorders and users, orders hasuser_idproducts and orders, bothhave skutags and posts, nothinglinks themorders.user_id = users.idproducts.sku = orders.skutags.id = posts.tag_id, aguess to check
Tables to ON textorders and users, orders has user_idorders.user_id = users.idproducts and orders, both have skuproducts.sku = orders.skutags and posts, nothing links themtags.id = posts.tag_id, a guess tocheck
The page looks for a link between the two tables.

Before After

Dialects

Menu choiceWhat changesStandard, Postgres, SQLiteMySQLSQL ServerLIMIT 10 and "odd name"LIMIT 10 and `odd name`SELECT TOP 10 and [odd name]
Menu choice to What changesStandard, Postgres, SQLiteLIMIT 10 and "odd name"MySQLLIMIT 10 and `odd name`SQL ServerSELECT TOP 10 and [odd name]
The menu changes limits and quoting.

Before After

Filters, order and limit

You enterIn the SQLOne filterTwo filtersOrder by textLimit of 100Limit of abcWHERE orders.status ='shipped'A second line starting withANDORDER BY as you typed itLIMIT 100No LIMIT line
You enter to In the SQLOne filterWHERE orders.status = 'shipped'Two filtersA second line starting with ANDOrder by textORDER BY as you typed itLimit of 100LIMIT 100Limit of abcNo LIMIT line
Each box becomes a line of SQL.

Before After

Warnings under the query

What it foundNoteA column that is not in yourtablesA table used but not in Fromor a joinA join edited by hand, thenthe table changedReview needed: that is not acolumn in the schema aboveInvalid as written: add ajoin or untick its columnsReview needed: the edited ONtext was kept as typed
What it found to NoteA column that is not in your tablesReview needed: that is not a columnin the schema aboveA table used but not in From or ajoinInvalid as written: add a join oruntick its columnsA join edited by hand, then thetable changedReview needed: the edited ON textwas kept as typed
The page checks what you built.

Support Matrix

What each dialect uses

Uses LIMITUses TOPDoublequotesBackticksSquarebracketsStandardMySQLSQL Server
StandardUses LIMITDouble quotesMySQLUses LIMITBackticksSQL ServerUses TOPSquare brackets
A large white dot marks what the dialect uses; a small dim dot marks absence.

Pipeline

Plain English

Write what youwant in plainwordsPress Write theSQLYour tables andyour words aresent for writingThe answer ischecked, thenshownRead it before yourun it
Write what you want in plain wordsPress Write the SQLYour tables and your words aresent for writingThe answer is checked, then shownRead it before you run it
You can ask for a query in words.

Before After

What the plain English box can say

CaseMessageNothing typedNo tables listedThe answer has no SELECTThe answer would change dataThe writer cannot be reachedDescribe the query first.Add your tables above first.No SELECT came back.Rephrase the request.The result was not a plainSELECT, so it was discarded.The writer could not bereached.
Case to MessageNothing typedDescribe the query first.No tables listedAdd your tables above first.The answer has no SELECTNo SELECT came back. Rephrase therequest.The answer would change dataThe result was not a plain SELECT,so it was discarded.The writer cannot be reachedThe writer could not be reached.
Each case has its own message.

Input To Output

Tables and choices in, SQL out

TablesClicksPlain wordsSQL from yourclicksSQL from yourwordsWarningsBuilderInOut
InTablesClicksPlain wordsBuilderSQL from your clicksSQL from your wordsWarningsOut
Two ways to get a query.

Pipeline

Joins

Pick a table tojoinThe page guessesthe ON textEdit it by hand ifyou wantYour edit is keptif the tablechanges, with areview note
Pick a table to joinThe page guesses the ON textEdit it by hand if you wantYour edit is kept if the tablechanges, with a review note
Each join keeps its own ON text.

Before After

Columns

You doResultTick users.nameNothing tickedA column you type in afilterusers.name is returnedSELECT *Used as typed, not ticked
You do to ResultTick users.nameusers.name is returnedNothing tickedSELECT *A column you type in a filterUsed as typed, not ticked
Ticks decide what is returned.

Before After

Table lines

You typeResultusers: id, nameorders id totalOrder Items: idA table with two columnsIgnored, no colonIgnored, the name has aspace
You type to Resultusers: id, nameA table with two columnsorders id totalIgnored, no colonOrder Items: idIgnored, the name has a space
Each line needs a name, a colon and columns.

Pipeline

Changing the From table

Pick another FromtableA join to thatsame table movesto another tableGuessed ON text isworked out againEdited ON textstays, with areview note
Pick another From tableA join to that same table moves toanother tableGuessed ON text is worked outagainEdited ON text stays, with areview note
The joins follow.

Before After

The copy buttons

ControlDoesCopy SQLCopy generated SQLDialect menuCopies the query built fromyour clicksCopies the query writtenfrom your wordsChanges the quoting andlimit style of the builtquery
Control to DoesCopy SQLCopies the query built from yourclicksCopy generated SQLCopies the query written from yourwordsDialect menuChanges the quoting and limit styleof the built query
Two buttons, two queries.

Pipeline

The checks

Collect the tablenames the queryusesCompare them withFrom and the joinsCompare eachcolumn with yourtablesShow notes underthe query
Collect the table names the queryusesCompare them with From and thejoinsCompare each column with yourtablesShow notes under the query
They run each time the query changes.

Authored Tiles

Good to know

The query is only text, itis never runOnly SELECT queries arebuiltPlain English asks ourwriter, the rest stays inyour browserRead any written querybefore you use it
The query is only text, it is neverrunOnly SELECT queries are builtPlain English asks our writer, therest stays in your browserRead any written query before you useit
Four plain facts.