Credits each student is carrying

SQLMedium11 min

Your task

Total the credits each enrolled student is taking. Return name and credits, most first, then alphabetically.

Tables

student
idINTEGERnameTEXTyearINTEGER
1Tam1
2Uli2
3Vic2
4Wren3
course
idINTEGERtitleTEXTcreditsINTEGER
1Databases4
2Networks3
3Compilers4
4Ethics2
enrolment
student_idINTEGERcourse_idINTEGERgradeINTEGER
1188
1272
2191
2364
3191
3255
More rows not shown