SQL lab

SQL joins

Run INNER, LEFT, RIGHT, FULL and CROSS joins on the same two tables and compare the rows.

InteractiveFive joins, one pair of tables
Loading interactive…

Notice that the outer joins only ever add rows to the inner join's result, and that CROSS is simply every pairing.

Learn the concept

The lesson this lab comes from, with the explanation, a practice task and a quiz.

More labs

All labs