Question: Create a new database called Recipes. Create a new table ( Area ) to hold the different supermarket areas from which you can buy ingredients.
Create a new database called Recipes.
Create a new table (Area) to hold the different supermarket areas from which you can buy ingredients. When you have defined the fields, enter data as shown below:
| AreaID | AreaName |
| 1 | Meat |
| 2 | Dairy |
| 3 | Baking |
| 4 | Fruit and Vegetables |
| 5 | Local Market |
| 6 | Grocery |
| 7 | Other |
Close this table down, then create another table called Recipe to hold your favourite recipes (if you haven't got any, make them up!). Here is what this might look like:
| RecipeID | RecipeName |
| 1 | Sponge Cake |
| 2 | Lasagne |
Finally, create and populate a table to hold the ingredients (Ingredient) that you need to buy - this might look like this:
| IngredientID | IngredientName | AreaID | RecipeID | Quantity |
| 1 | Eggs | Baking | Sponge Cake | 2 |
| 2 | Flour | Baking | Sponge Cake | 4 oz |
| 3 | Margarine | Dairy | Sponge Cake | 4 oz |
| 4 | Sugar | Baking | Sponge Cake | 4 oz |
| 5 | Mince | Meat | Lasagne | 0.5 lb |
Apply referential integrity to your relationships: Save your Database
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
