I have two tables :
Products table :
Family table :
I want to get all the family_name
records of the products that have the same family_code
as in the family
table :
SELECT family_name
FROM family
LEFT JOIN products
ON products.family_code=family.family_code;
But this code return all the family_name
records .
Any idea where did I go wrong ?
Much appreciated