I'm trying to get the data that is not related through a query between three tables, but I have not achieved the feat.
In my case I have three tables
Marcas
Categorias
Asignacion
(It is the intercept table between Brands and Categories)
The relationship between brands and categories, is many to many in this case, because a brand can have several categories or lines of product, or a line of product or category, can be in several brands or be produced by several. For example
Nestle, which is a brand, can produce, cookies, chocolates, and Colombina, produces cookies and chocolates. If you look closely, both produce cookies, but one produces chocolate and the other chocolate.
So, I want to know how to obtain, in the case of selecting Nestle, obtain Chocolate, since that does not produce it, or if there are several registered in the database, obtain all the lines or categories that do not have reference to this Brand.