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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -