INNER JOIN

Join two tables on a matching column

Join

SQL

SELECT u.name, o.total
FROM users u
INNER JOIN orders o ON u.id = o.user_id;

What each clause does

INNER JOIN returns only rows where both tables have matching values. ON defines the join condition (u.id = o.user_id).

Related tools

Other SQL examples