MySQL solution
select class 
from Courses
group by class
having count(distinct student) >= 5;
Comments (0)