← All text tools

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.

  • Free
  • No sign-up
  • Works on any device

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?

Also known as

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.