-- Bad: missing relationship detail can multiply rows
SELECT *
FROM orders o
JOIN payments p ON p.customer_id = o.customer_id;Always verify that your join key represents the real relationship. In this example, `payment_id` or `order_id` might be required instead.