Skip to content
Advertisement

Find all recipes with just vegan products

I have been trying to find all recipes with just vegan products but so far I just have this:

But that query is giving me all the products that are vegan for all the recipes.

No idea how could I resolve it.

Thanks!

Advertisement

Answer

Two rules:

  1. A product is vegan, if one of its specific diets is ‘VEGAN’.
  2. A recipe is vegan, if it only consists of vegan products.

In other words: A vegan recipe is a recipe for which NOT EXISTS any product that is NOT IN the set of vegan products.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement