How to calculate the lecture hours in: "For each student attending a least a course, determine StudNr, Name, and how many hours of lectures he/she attends every