I have the following 4 tables:
tblCourses
tblPeople
tblRoles
tblCoursePeopleRoles
tblCoursePeopleRoles is a junction table that accomodates the many-to-many relationships between the records in the first three tables.
The junction table looks something like this:
Math 25, John Smith, Instructor
Math 25, Carol Jones, TA
English 17, David Black, Instructor
Spanish 1, Esperanza Martinez, Instructor
Spanish 1, Esperanza Martinez, TA
History 100, Jeff Michaels, Instructor
History 100, Jeff Michaels, TA
History 100, Susan Oats, Reader
Given my junction table, what kind of query can I run to identify, for example, the following groups:
People who are TAs and have no other roles (e.g., Carol Jones)
People who are Readers and have no other roles (e.g., Susan Oats)
People who are both an Instructor and a TA in the same course (e.g., Esperanza Martinez and Jeff Michaels)
The problem: if I add all my tables to a select query and set "TA" as a criteria, it returns everyone who has TA designation, including those people who are both TA and Instructor in the same course. I need to see only those who are TAs but have no other role in the same course.
How can I achieve that?
Thank you.