# #596 Classes More Than 5 Students

#### [https://leetcode.com/problems/classes-more-than-5-students](https://leetcode.com/problems/classes-more-than-5-students)

{% tabs %}
{% tab title="MS SQL Server" %}
```sql
SELECT class 
FROM courses
GROUP BY class
HAVING COUNT(class) >= 5;
```
{% endtab %}
{% endtabs %}
