VÆLG q3.S_ID, q3.S_LAST, q3.S_FIRST, max( q3.Total Credits)FROM (SELECT q2.S_ID, q2.S_LAST, q2.S_FIRST, sum(q1.CREDITS) Credits i alt FROM (SELECT COURSE_NO, CREDITS FROM COURSE) q1 JOIN (VÆLG s.S_ID, s.S_LAST, s.S_FIRST, cs.COURSE_NO FRA STUDENT s JOIN TILMELDING e ON s.S_ID =e.S_ID JOIN COURSE_SECTION KURSUS_CsECTION COURSE_SECTION .C_SEC_ID) q2 ON q1.COURSE_NO =q2.COURSE_NO GROUP BY q2.S_ID, q2.S_LAST, q2.S_FIRST) q3GROUP BY q3.S_ID, q3.S_LAST, q3.S_FIRST;