✅Simple and easy to understand || 🔥Full details explain with notes📝🗒
Intuition\nThe first thought is that we need to group the students by their class and count the number of students in each class. This suggests that we can use 
# Intuition\nThe first thought is that we need to group the students by their class and count the number of students in each class. This suggests that we can use the GROUP BY clause to group the class column and the COUNT(CLASS) aggregate function to count the number of times each class appears.\n\n# Approach\n1. Use the GROUP BY clause to group the class column in the Courses table. This will create groups of students based on their class.\n\n2. Within each group, use the COUNT(CLASS) aggregate function to count the number of times each class appears. This will determine the number of students in each class.\n\n3. Apply a HAVING clause to filter the results, keeping only those groups with a COUNT(CLASS) value greater than or equal to five. This will isolate the classes that have at least five students.\n\n4. Select the class column from the filtered groups. This will provide the list of classes that meet the criteria.\n\n# Complexity\n- Time complexity:\nO(n), where n is the number of students in the Courses table.\n- Space complexity:\nO(n)\n\n![image.png](https://assets.leetcode.com/users/images/a95ee92c-2b45-47ff-abd8-14f8f0dee199_1700277776.8834956.png)\n\n\n# Code\n```\n# Write your MySQL query statement below\nSELECT class\nFROM Courses\nGROUP BY CLASS\nHAVING COUNT(CLASS) >= 5;\n```
['MySQL', 'Oracle', 'MS SQL Server']