I am building a database that will include ingredients and subingredients (subingredients can have more subingredients).
Ex.
ID Ingredient / SubIngredients
1 Butter Finger / Peanut Butter
2 Peanuts
3 Salt
4 Peanut Oil
5 Peanut Butter / Peanuts
5 Peanut Butter / Salt
5 Peanut Butter / Peanut Oil
How can I make a query, or function where I can just select Butter Finger as my Ingredient but it knows that it includes Peanut Butter, and Peanut Butter includes Peanuts, Salt, and Peanut Oil?
Of course Salt and Peanuts might be subingredients or main ingredients in another formula (so a parent Id will not work).
Thanks