Open Jemmy350 opened 4 years ago
Experiencing similar behavior however, instead of displaying just the single column it's showing both columns but the values are from the first field that has conflicting name. Taking your example it would show like so:
id | name | prep_time | main_ingredient | name 1 | Chicken Alfredo | 30 | 3 | Chicken Alfredo
So if I have two tables for example that both have name, when selecting and joining these two the second table name overwrites the first.
select recipes.id, recipes.name, recipes.prep_time, recipes.main_ingredient, ingredients.name from recipes join ingredients on recipes.main_ingredient = ingredients.id;