SQL JOIN Visualizer
Edit test data directly, chain multiple tables, and see exactly how each join type behaves. Runs entirely in your browser.
How to use:
- Edit sample data in the tables or add your own rows and columns
- Select a join type (INNER, LEFT, RIGHT, FULL, CROSS)
- Choose the join condition and operator
- See the visual Venn diagram and resulting rows
- Copy the generated SQL for your queries
Edit the tables below to see how different joins behave.
Tables
Join step
Step 1: customers ⋈ orders
Returns only rows where the join condition matches on both sides.
3 matched pairs • 1 unmatched in customers • 1 unmatched in orders
Generated SQL
SELECT * FROM customers INNER JOIN orders ON customers.id = orders.customer_id;
Result (3 rows)
| customers.id | customers.name | orders.id | orders.customer_id | orders.product |
|---|---|---|---|---|
| 1 | Alice | 101 | 1 | Widget |
| 1 | Alice | 102 | 1 | Gadget |
| 2 | Bob | 103 | 2 | Gizmo |