Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
How to query more than one table
Creating JOINs
6. Join tables using JOIN
Referencing columns
Let's practice


Take a look at the following example:

FROM person
JOIN car
  ON = car.owner_id;

We want to join the person and car tables, so we use the keyword JOIN between their names.

SQL must also know how to join the tables, so there is another keyword ON. After it, we set our condition: join only those rows where the id in person is the same as owner_id in car.


Use the new construction JOIN ... ON to join rows from the movie and director tables in such a way that a movie is shown together with its director.

Stuck? Here's a hint!


FROM movie
JOIN director
  ON movie.director_id =;