Beats 96.52% || EASY One-Liner Approach || Group BY
Approach\n Describe your approach to solving the problem. \nI have used GROUP BY , to group all the studnts of same class having count of student more than 5. \
# Approach\n<!-- Describe your approach to solving the problem. -->\nI have used GROUP BY , to group all the studnts of same class having count of student more than 5. \n\nIt is very simple approach to solve this question. \n\n# Complexity\n- Time complexity: \n \n    Beats 96.52 % \n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n![image.png](https://assets.leetcode.com/users/images/52385908-4b72-419d-bffa-ce85cc08a496_1682938557.1244524.png)\n\n\n# Upvote\n\nIf this code helps you please upvote the solution. :) \n\n# Code\n```\nSELECT class FROM Courses GROUP BY class HAVING count(student) >= 5;\n```
['MySQL']