diff --git a/n.sql b/n.sql index c979285..bb3f8be 100644 --- a/n.sql +++ b/n.sql @@ -9,4 +9,5 @@ FROM Students JOIN TakenCourses ON Students.pNbr = TakenCourses.pNbr GROUP BY Students.pNbr; -SELECT firstName, max(averageGrade) FROM StudentsAverages \ No newline at end of file +SELECT firstName, averageGrade FROM StudentsAverages +WHERE averageGrade = max(averageGrade); \ No newline at end of file