INNER JOIN returns rows that have matching values in both tables.
INNER JOIN
SELECT orders.id, customers.name FROM orders INNER JOIN customers ON orders.customer_id = customers.id;
orders
customers