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