Lets say I have a list of recipes, ingredients, and cost of these ingredients.
Could anyone point me in the right direction as to how I can starting with a budget of some dollar amount find the most numbers of recipes I can make?
For example
If I have $50 to spend And 5 recipes:
- onion soup => ingredients (water $1, onion $45)
- salad => ingredients (lettuce $4)
- cake => ingredients (flour $8)
- jello => ingredients (jello $4)
- scambled eggs => ingredients (eggs $3)
How do I get sql to return a list like:
Combination number | recipes
-----------------------------
1 1
1 2
2 1
2 4
3 1
3 5