Mysql Column 'nume' in field list is ambiguous error -


select nume "nume", adresa "adresa",localitate "localitatea" info  left join angajati  on id_i = id_a localitate "orhei"  , year(curdate()) - year(data_nast) >=50 

i have 2 tables nume field , i'm getting error, please don't why code didn't work !!!

since joining on id_i , id_a columns, 2 nume columns distinct in joined result. specify table's nume column mean:

select info.nume "nume" ... 

or

select angajati.nume "nume" ... 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -