Mysql
 sql >> Database >  >> RDS >> Mysql

Inner join con 3 tabelle in mysql

Quasi correttamente.. Guarda i join, stai riferendo i campi sbagliati

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