1280-students-and-examinations

DevGod
Vtuber
# Write your MySQL query statement belowSELECT Students.student_id, Students.student_name, Subjects.subject_name, COUNT(Examinations.subject_name) AS attended_examsFROM StudentsJOIN SubjectsLEFT JOIN ExaminationsON Students.student_id = Examinations.student_idAND Subjects.subject_name = Examinations.subject_nameGROUP BY Students.student_id, Subjects.subject_nameORDER BY student_id ASC, subject_name ASC