This commit is contained in:
Imbus 2024-01-25 21:38:08 +01:00
parent 2d73d6551a
commit 3fef57df8a

4
l.sql
View file

@ -1,5 +1,5 @@
select avg(TakenCourses.grade) as averageGrade, TakenCourses.courseCode, Courses.courseName, sum(Courses.credits) as totalCredits
select firstName, lastName, avg(TakenCourses.grade) as averageGrade, TakenCourses.courseCode, Courses.courseName, sum(Courses.credits) as totalCredits
from TakenCourses
join Students on TakenCourses.pNbr = Students.pNbr
join Courses on TakenCourses.courseCode = Courses.courseCode
where Students.firstName = 'Eva Alm'
where Students.firstName = 'Eva' AND lastName = 'Alm'