Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Visual studio 2010 SQL Concept

$
0
0

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.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>