I'm trying to pull first_name from Names table, but only if that users_id is in the Orders table and order_num = 1, but I keep getting an error.
SELECT first_name
FROM customers
LEFT JOIN orders
ON orders.order_id = customers.cust_id
AND orders.order_num = 1
but my query is returning multiple values instead of just one, like it ignoring orders.order_num=1
- does my query look right, or is there something I'm doing wrong?