Easy Solution | beats 100% less space | beats 80% Runtime
\nselect class from courses\ngroup by class \nHAVING count(distinct student) >= 5;\n
```\nselect class from courses\ngroup by class \nHAVING count(distinct student) >= 5;\n```
['MySQL']