GROUP BY
clause to aggregate the records by the class
column.COUNT
function to count the number of students in each class.HAVING
clause to filter the results to only include classes that have a count of students greater than or equal to five.class
column from the filtered results to get the final output.erDiagram Courses { varchar student varchar class student class PK }