Canonical: https://toolipedia.app/sql-join-visualizer

# SQL Join Visualizer

See INNER, LEFT, RIGHT, FULL and CROSS joins at work on two small editable tables, with matching and unmatched rows marked and the result set shown below.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > SQL Join Visualizer

## About SQL Join Visualizer

Joins are easier to understand when you can see the rows. Edit the two small tables (the first line is the column names, an empty value is NULL), choose a join type and the columns to match, and the page marks each row as matched or unmatched and builds the result set. INNER, LEFT, RIGHT, FULL and CROSS joins are covered, plus the anti-joins that keep only rows without a match. With the sample employees and departments tables, an INNER join returns 2 rows and a LEFT join returns 4, because Cara and Dan have no department.

## How to use SQL Join Visualizer
1. Edit the two tables, or keep the sample employees and departments.
2. Choose the join type and the column that links the two tables.
3. Read the green and orange rows to see what matched, then study the result table and the SQL written below it.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- sql join visualizer
- sql joins explained
- inner join vs left join
- join diagram
- sql join practice tables

## Frequently asked questions

### Why do rows with an empty key never match?

In SQL, NULL is not equal to anything, not even another NULL. A row whose join column is NULL is dropped by an INNER join and kept with NULLs by an outer join.

### Why can a join return more rows than either table?

When one row matches several rows on the other side, the row is repeated once for each match. A CROSS join pairs every row with every row, so 3 rows and 4 rows give 12.

### Does this run real SQL?

No. The page applies the join rules to the sample rows in your browser, so it is a teaching tool. To run SQL on your own files use a SQL-on-CSV tool.

### Is SQL Join Visualizer free?

Yes. SQL Join Visualizer on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with SQL Join Visualizer:
- [SQL Query Builder](https://toolipedia.app/sql-query-builder)
- [Algorithm and Data-Structure Visualizer](https://toolipedia.app/algorithm-and-data-structure-visualizer)
- [SQL EXPLAIN Plan Visualizer](https://toolipedia.app/sql-explain-plan-visualizer)
- [Bracket Balance Checker](https://toolipedia.app/bracket-balance-checker)
- [GPX Merge, Trim, Split and Reverse Tool](https://toolipedia.app/gpx-merge-trim-split-and-reverse-tool)
