I need some help.
Im trying to create application to return different recipes i can cook based on what ingredients I have in stock.
I have two tables, Ingredients and Recipes.
There are two columns in ingredients table. Ingredient and quantity. for now quantity is going to be a 1 or 0.
There are 10 columns in the recipes table, the name of the recipe and 9 ingredient columns.
I cannot wrap my head around this concept to return what recipes have all the ingredients they need to be made. There are a different amount of ingredients in each recipe.
I could take the ingredients table and only include ingredients that I have. but im not sure on the methodology behind joining that with the recipes that all the ingredients are a 1 value.
↧
Visual studio 2010 SQL Concept
↧