Problem Statement
What does an INNER JOIN return?
Explanation
An INNER JOIN keeps only the intersection: rows that match on the join keys in both inputs. If a row does not find a partner, it is excluded.
Use INNER JOIN when you need strictly related data and do not want NULLs from missing matches.
Code Solution
SolutionRead Only
SELECT o.id, c.name FROM orders o JOIN customers c ON c.id = o.customer_id;
