Skip to content
Theory · JOIN · lesson 1 of 12

INNER JOIN

Stacks of employees and shops; an employee card is clipped to the shop card with the same mark by a JOIN tag

In the previous chapter the coffee chain spread over several tables. The employees table does not store a shop's address for each employee, only its number: Pavel's shop_id is 1. The shop's name lives in another table, shops. To find out where Pavel works, you have to look at two tables and match the numbers by eye.

In this lesson

  • Joining by a key
  • Who was left without a pair
  • Common mistake
  • Key points