I am doing the following query, however, it tells me that the name is ambiguous, I have read in several places and they mention that it is because I have 2 equal columns and the sql does not know which table I want to take the data from, but if you see in my query I put an alias to indicate which table I want to take the data, I hope your help.
this is my query ...
select p.nombres,c.unidad
from tbl_contratos c
INNER JOIN tbl_persona p
ON p.nroEmpleado=c.nroEmpleado WHERE nroEmpleado ='50361'