У меня есть 4 таблицы:
студент:
student_id(PK)
student_name
section_ID
раздел:
section_ID(PK)
section
Класс:
class_ID(PK)
class
section_ID
метки:
student_id(CK)
subject_id(CK)
marks
со следующим кодом
SELECT Class.Class, MAX(Marks.Marks) AS Total_Marks
FROM Marks, Class, Student, Section
WHERE Marks.Student_ID = Student.Student_ID
AND Student.Section_ID = Section.Section_ID
AND Section.Section_ID = Class.Section_ID
GROUP BY Class.Class
Я могу найти самые высокие оценки в каждом классе, но я также хочу вывести имя ученика ИЛИ studentID
Помоги мне, пожалуйста
Я использую MS ACCESS