Using Simple Query🎈
\n\n# Approach\nA simple logic just use group by class everything else have the basic knowledge and understanding.\n\n\n\n# Code\n\nSELECT class FROM Courses \n
\n\n# Approach\nA simple logic just use `group by class` everything else have the basic knowledge and understanding.\n\n\n\n# Code\n```\nSELECT class FROM Courses \ngroup by class \nhaving count(Distinct student) >= 5;\n```\n![1qivbn.jpg](https://assets.leetcode.com/users/images/a169dbd7-b34d-4a99-8359-a8a813239d9a_1689869293.2703924.jpeg)
['MySQL']