Avatar of Mark01
Mark01Flag for United States of America

asked on 

Food Database

This is not a homework question. This question involves defining an entity that includes cake batter, the result of mixing the ingredients in a given recipe resulting in a variety of batters.

Mixing the ingredients in a cake recipe results in producing cake batter. Cake batter is part of some sort of "Type" entity. This "type" entity includes various batters and doughs.

Here is some sample data: cake recipe #1 batter was frozen on 3-1-2000.

The food database already has Recipe and Ingredient tables. Please help me define the entity.
DatabasesMicrosoft AccessMicrosoft SQL Server

Avatar of undefined
Last Comment
Mark Wills
SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Mark01
Mark01
Flag of United States of America image

ASKER

I'm having a hard time associating cake batter with a given recipe. Some sample data is shown:
Recipe: cake recipe #1

Batter doesn't seem to be an attribute of the Recipe table. It seems like a linking table with RecipeID foreign key with the batter category name would work. Any thoughts?
Avatar of Mark Wills
Mark Wills
Flag of Australia image

It is like a BOM (bill of materials), an Assembly made from ingredients.

You say you have an ingredients table, so this is in between Recipe (being the end product) and Ingredient (being Raw materials).

So, "batter" will become a mix of raw materials (flour, eggs, milk etc) and become the usable part in the Recipe in place of (or a shortcut to) the raw materials themselves. Having said that, It can always be expanded back into the raw materials list if needed. Each "batter" would have deviations of quantities / ingredients etc. So, you need to build that table as a new beast.

When building a recipe (as the end product), you could choose "batter" or bypass that and go straight to raw materials. It depends on how sophisticated you want to get.

Not sure what the correct term would be in a kitchen (it is a type of recipe when you think about it, just not the finished item).... But will have a few thoughts.
SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Mark01
Mark01
Flag of United States of America image

ASKER

Your comments are very helpful. There is no need to associate ingredients with cake batter. The important association is a recipe with cake batter.

A linking table may be appropriate. The database already Freezer and Shelf tables to track the location of recipes in the freezer.

Fields:
RecipeID (FK)
FreezerID (FK)
Batter (boolean)
Dough (boolean)
Freeze date
 
ASKER CERTIFIED SOLUTION
Avatar of Mark Wills
Mark Wills
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Mark01
Mark01
Flag of United States of America image

ASKER

Thank you, ste5an, Mark Wills and John Tsioumpris.
Avatar of Mark Wills
Mark Wills
Flag of Australia image

Our pleasure. Hope your project works out for you without too many frustrations. Always think about the data. How it relates to each other. All the best....
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo