From 4138d9c2c2f08b2990fb94c26eb1ecaf0a800bb3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 11 Mar 2024 11:49:19 +0100 Subject: [PATCH] Query fix for n --- n.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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