I have two tables : students and contacts
Contacts can be related to several students and viceversa
I'm trying to come up with a select (prior 4.1) that will allow me to choose a contact which is not related to a particular student, but also not related to any other student.
Contact table example :
Criteria is 'select contacts that are not related to student id 1 but aso not related to any other student'
With the above example the result would be contact 2 and contact 3
I've tried all I could think about... I'm really stuck
Appreciate the help !
Thanks
--
PG
Contacts can be related to several students and viceversa
I'm trying to come up with a select (prior 4.1) that will allow me to choose a contact which is not related to a particular student, but also not related to any other student.
Contact table example :
Code:
ContactID ContactStudentId
1 1
1 2
2 2
3 3
Criteria is 'select contacts that are not related to student id 1 but aso not related to any other student'
With the above example the result would be contact 2 and contact 3
I've tried all I could think about... I'm really stuck
Appreciate the help !
Thanks
--
PG