Free SQL Reference Tool
Visualize Every
SQL JOIN Type
Interactive Venn diagrams, sample tables, and ready-to-copy SQL code for INNER, LEFT, RIGHT, FULL OUTER, CROSS, and SELF JOINs — understand the difference in seconds.
🔵
Visual Venn Diagrams
See exactly which rows each JOIN type returns, rendered as clear, color-coded Venn diagrams.
📊
Live Sample Data
Explore real input tables and computed result sets for every JOIN type side by side.
📋
Copy-Ready SQL
Get a correct, formatted SQL snippet for each JOIN type — paste straight into your query editor.
INNER JOIN
Returns only the rows that have matching values in BOTH tables.
SQL
SELECT a.id, a.name, b.dept FROM employees a INNER JOIN departments b ON a.id = b.id;
Input Tables
Table A — employees
| id | name |
|---|---|
| 1 | Alice |
| 2 | Bob |
| 3 | Carol |
| 4 | Dave |
Table B — departments
| id | dept |
|---|---|
| 2 | Engineering |
| 3 | Design |
| 5 | Marketing |
Result
2 rows| a.id | a.name | b.id | b.dept |
|---|---|---|---|
| 2 | Bob | 2 | Engineering |
| 3 | Carol | 3 | Design |
Quick Comparison
Frequently Asked Questions
Everything you need to know about SQL JOIN Visualizer.