sql >> Base de Datos >  >> RDS >> Mysql

Unión interna con 3 tablas en mysql

Casi correctamente... Mire las uniones, está refiriendo los campos incorrectos

SELECT student.firstname,
       student.lastname,
       exam.name,
       exam.date,
       grade.grade
  FROM grade
 INNER JOIN student ON student.studentId = grade.fk_studentId
 INNER JOIN exam ON exam.examId = grade.fk_examId
 ORDER BY exam.date