JOINs combine rows from multiple tables based on a related column — essential for querying relational data spread across tables. The join type determines which rows are kept when there's no match.
The setup
users.name, orders.total
users
orders users.id orders.user_id;
