dblabs/l.sql

7 lines
414 B
MySQL
Raw Normal View History

2024-01-25 21:55:48 +01:00
--Same questions as in questions h)-k), but for the student Eva Alm. [5]
2024-01-25 21:38:08 +01:00
select firstName, lastName, avg(TakenCourses.grade) as averageGrade, TakenCourses.courseCode, Courses.courseName, sum(Courses.credits) as totalCredits
2024-01-25 19:40:23 +01:00
from TakenCourses
join Students on TakenCourses.pNbr = Students.pNbr
join Courses on TakenCourses.courseCode = Courses.courseCode
2024-01-25 21:38:08 +01:00
where Students.firstName = 'Eva' AND lastName = 'Alm'