dblabs/l.sql
2024-01-25 21:55:48 +01:00

7 lines
No EOL
414 B
SQL

--Same questions as in questions h)-k), but for the student Eva Alm. [5]
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' AND lastName = 'Alm'