Processed online by Toolvito
SQL Query Analyzer
Paste a query to see its parts and its joins, or your CREATE TABLE statements to get an entity-relationship diagram. Your SQL is parsed, never run.
What you get
- Analyse SQL queries: tables and aliases, each join with its kind (INNER, LEFT, RIGHT, FULL, CROSS) and condition, CTEs, subqueries, aggregates, window functions and clauses; warnings such as a join without a condition or SELECT *; a join diagram (SVG).
- Make an ERD: tables, columns, primary and foreign keys from CREATE TABLE statements, as an SVG and as Mermaid erDiagram text that many editors draw.
- Explain a query with AI: the steps in plain words, by a language model that runs on the Toolvito server. Every table or column name in the text is checked against the parsed query.
Dialects
Choose your SQL dialect (PostgreSQL, MySQL, SQL Server, SQLite, BigQuery, Oracle, Snowflake, DuckDB) so that its own syntax parses. The parser is sqlglot; nothing connects to a database.