Leetcode SQL-5021.classes with at least 5 studentsOn this page21.classes with at least 5 students Problem https://leetcode.com/problems/classes-with-at-least-5-students/description/?envType=study-plan-v2&envId=top-sql-50 Solution select c.classfrom Courses cgroup by c.classhaving count(student) >= 5 we group by class and select having class that have more than 5 students