I'm having a tough time rapping my brain around an efficient way to design tables and sets to track the daily moving of finished goods (eggs) to stock or product inventory, and am hoping someone has a good suggestion. Specifically, it would be used to track chicken egg production. I've designed a few tables, including a "Chicken" table, with all information pertaining to each bird, including a field (EggCount) to track total production for the life of the bird. Even though the egg is the "Finished Good" I keep thinking the chickens and the eggs can be represented in the same table since, in my case, I know which eggs come from which birds. Maybe I'm not thinking something about that right, though.
Essentially what I want to design is a database that I can log one record per day, indicating which bird layed an egg that day. During that entry I want to post a 1 egg increment in the "EggCount" field (historical total) in the "Chicken" table, for each bird that layed that day. At the same time, I want to increment the stock quantity of each egg layed in my "product stock." I don't know why I'm having such a hard time visualizing this design. Can I simply add a "Qty-In-Stock" field to my "Chicken(&Egg)" table, post any daily increments there, then calculate the total in-stock from that field for each bird? If so, can I just have a one-to-many set with the "Chicken" table and whatever table is used to record the daily layers?
Thanks, maybe something will click overnight.
Bookmarks