Link Search Menu Expand Document

596. Classes More Than 5 Students

Solution Code

MySQL

SELECT class
FROM courses
GROUP BY class
HAVING COUNT(DISTINCT student) >= 5;

© 2023. All rights reserved.