Concise solution using distinct and having.
The code below selects all classes with the number of distinct students greater or equal to 5, which is exactly what the problem is asking for.\n\n\nSELECT clas
The code below selects all classes with the number of distinct students greater or equal to 5, which is exactly what the problem is asking for.\n\n```\nSELECT class \nFROM courses\nGROUP BY class\nHAVING COUNT(DISTINCT student) >= 5\n```\n
[]