Query fix for n

This commit is contained in:
Imbus 2024-03-11 11:49:19 +01:00
parent c3ea12c723
commit 4138d9c2c2

2
n.sql
View file

@ -10,4 +10,4 @@ JOIN TakenCourses ON Students.pNbr = TakenCourses.pNbr
GROUP BY Students.pNbr; GROUP BY Students.pNbr;
SELECT firstName, averageGrade FROM StudentsAverages SELECT firstName, averageGrade FROM StudentsAverages
WHERE averageGrade = max(averageGrade); WHERE averageGrade = (SELECT max(averageGrade) FROM StudentsAverages);