Assuming course table contains all the courses a student can take, you can group by the id column in the results table and check if the count is equal to the row count in course table.
Assuming course table contains all the courses a student can take, you can group by the id column in the results table and check if the count is equal to the row count in course table.