I have the classes Student, Classroom and Course. A Student has and belongs to many classrooms, and a Classroom has and belongs to many courses.
How do I retrieve all the courses associated with a Student? Also, how do I retrieve all students associated with a course?
Thanks!