Visually build SQL queries without writing code
Select columns from the left panel...
Stored only in this browser.
This visual query builder writes a SELECT statement while you choose options. Select columns from your tables, add aliases and aggregates such as COUNT, SUM, AVG, MIN and MAX, then watch the query preview update. It is useful for drafting reports, learning SQL clause order and avoiding syntax mistakes.
Choose the main table, tick the columns you need, and add joins with their ON condition. Add WHERE filters with operators including =, LIKE, IN, BETWEEN and IS NULL. Finish with GROUP BY, HAVING, ORDER BY, LIMIT and OFFSET, then copy the result.
Select Edit next to Database Schema and enter a JSON object whose keys are table names and whose values are arrays of column names, for example {"users": ["id", "email"], "orders": ["id", "user_id", "total"]}. The schema is saved in your browser. The builder does not connect to a database or run queries.
The output uses common SQL syntax. LIMIT and OFFSET work in MySQL, PostgreSQL and SQLite, while SQL Server uses different paging syntax. Review quoting and conditions before running a query, and use parameterized queries in application code.
Yes. It is free to use and needs no account.
It produces common SELECT syntax that suits MySQL, PostgreSQL and SQLite for typical queries. Check database-specific features yourself.
No. You describe table and column names, and the query is built in your browser.
No. It builds SELECT queries.