dblabs/l.sql

5 lines
300 B
MySQL
Raw Normal View History

2024-01-25 19:40:23 +01:00
select 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'