Logic of indefinitely nested rows in ACCESS -


i've been month trying figure out maybe simple:

i have similar recipes table

product     ingredient  qty

lemonade    lemon     2
lemonade    water     1
lemonade    sugar     6
breakfast    lemonade    1
breakfast    sandwich    1
sandwich    bread      2
sandwich    lettuce      1
sandwich    ham       3

and table, product, properties of each one

concept     type

lemonade    product
breakfast    action
sandwich    product
lemon     supplie
water     supplie
sugar     supplie
bread     supplie
lettuce     supplie
ham      supplie

this indefinitely nested examp. adding day, , nest breakfast, dinner, lunch etc. each 1 nested products , each products nested supplies

  • it possible in 1 query supplies used in breakfast?

  • or have change logic?

this call “bom” in database land. (bill of materials). might have “electric motor assembly” , goes fan assembly , hat goes air condition unit. ability “add together” un-limited amounts of assemblies solved , requested problem in database land.

an access example of such design can found here:

the http://access.mvps.org/access/modules/mdl0027.htm

the above in access 97, have “import” example recent versions of access before use. can bingoogle “bom” database examples.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -