So I have this feed of products
id man sup product
1 1 1 MacBook
2 1 2 iMac
3 2 1 Windows
4 2 2 Office
and then tables with manufacturers
id manufacturer
1 Apple
2 Microsoft
and suppliers
id supplier
1 TechData
2 Westcoast
Then, for some reasons, I don't want to show a manufacturer's products by a certain supplier, i.e.:
id man sup comment
1 2 1 TechData aren't allowed to sell Microsoft
2 1 2 hide all Apple products from Westcoast
Is there a way, in pure SQL, to show only the products which fall through my filter, in this case MacBook and Office? I believe this isn's just a WHERE NOT (x AND y)
as the result will list the remaining combinations.
Thanks a lot!