SQL: Identifying Classes with At Least Five Students Using SQL Grouping and Aggregation
\n# Complexity\n- Time complexity: O(n * logn)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity: O(n)\n Add your space complexity here, e.g. O(
\n# Complexity\n- Time complexity: $$O(n * logn)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: $$O(n)$$\n<!-- Add your space complexity here, e.g. $$O(1)$$ -->\n\n# Code\n```\n# Write your MySQL query statement below\nSELECT class\nFROM courses\nGROUP BY class\nHAVING COUNT(student) >= 5;\n\n```\n![upvote_leetcode.png](https://assets.leetcode.com/users/images/8bd2a51b-09cb-41a9-a88b-eecc0c0dd725_1702913600.4399269.png)\n
['MySQL']