Simplified version of the challenge ...
Clients table has a single field - ClientID
Policies table has 3 fields - PolicyID, ClientID, ProductID
Clients has a one to many relationship with Policies based on ClientID, obviously.
I want a list of ClientIDs from Clients where a record does not exist in Policies for those ClientIDs where ProductID = "ABC". In other words ... show me all the clients who do not have ProductID = ABC; i.e. there is no record in Policies for that ClientID and ProductID = ABC.
I've tried many things. Read through many threads. But can't get this to work.
Thanks!
Clients table has a single field - ClientID
Policies table has 3 fields - PolicyID, ClientID, ProductID
Clients has a one to many relationship with Policies based on ClientID, obviously.
I want a list of ClientIDs from Clients where a record does not exist in Policies for those ClientIDs where ProductID = "ABC". In other words ... show me all the clients who do not have ProductID = ABC; i.e. there is no record in Policies for that ClientID and ProductID = ABC.
I've tried many things. Read through many threads. But can't get this to work.
Thanks!