Below is the use case for a Recipes database, which is used by restaurant owners
ID: 3737029 • Letter: B
Question
Below is the use case for a Recipes database, which is used by restaurant owners to record recipes and their ingredients. Information about ingredients used are stored in the database, including the name and price per kilogram of each ingredient Because some ingredients have the same or similar names, a description of each ingredient is also included. Information is stored about recipes, including the name of the recipe, the author of the recipe, the time taken to prepare and the method . . The ingredients required for each recipe are also stored, including the quantity of each ingredient used in the recipe. Each recipe may contain many ingredients, and an ingredient is listed only once for each recipe. A) Based on the use case for the Recipes database complete the relational model below Recipes (recipelD, name, author, preparationTime, method) Contents (recipelD, ingredientID_) Ingredients ( , name, description, price) Fill the above blanks using one of the options : Ingredient D , recipe ID , name, contents, quantity, Price B) How many of each of the following are there in the relational schema? Attributes that cannot be NULL as they participate in a Primary Key: Attributes that are subject to a Referential Integrity Constraint:_Explanation / Answer
If you have any doubts, please give me comment...
A)
Contents (recipeID, integrityID, quantity)
Ingredients (IngredientID, name, description, price)
B)
2 Recepies(recipeID) and Ingredients(IngredientID)
2 Contents(ingredientID) --> Ingredients(ingredientID), Contents(recipeID) -->Recipes(recipeID)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.