selecting 3 best grades and calculating average
I'm stuck on the following problem. Students can take 3 or more courses. I need to collect grades using the student ID, discard the worst ones if they took more than 3 and calculate the average. I'm stuck. Hopefully, somebody more knowledgable than me can crack this problem for me.
All the best,