I need to relate two tables with INNER JOIN .
In a relationship table I have Estudiante
In the table students I have Estudiante
, Nombre
, Grado
.
I need to relate both tables in a query and the result is one.
The query I have.
SELECT DISTINCT t.Id_Estudiante, u.Id_Estudiante, Nombres, Grado FROM relacion INNER JOIN estudiantes WHERE relacion.r = estudiantes.u
The end of what I want is for you to show me the Id_Estudiante
, the name of the student and the grade you are studying.
The Estudiante
field is the initials of the student's name. Example:
María Alejandra Ortiz = maortiz