ive got the following habtm relationship.
My model tag is associated with many taggroups. So i can have multiple taggroups which include the same tag. I have taggroup user views, which show all including tags of this taggroup. Now there is a special option ive got for taggroups, which is named "blacklisted". If a taggroup is marked as blacklisted, there is no user view for this taggroup AND all tags of this taggroup should not be visible in any other taggroup view where they are maybe also included. I hope is was clear enough and you will see my problem.
My question is now: how would a corresponding mysql query look like? I thought about an intersection of two joined tables, but as far as i know mysql isnt supporting intersections..
Thanks in advance.