Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql inner join 3 tables

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #join #tables
ADD COMMENT
Topic
Name
6+1 =