Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a relational algebra expression that returns the food items required to cook the recipe Pasta and Meat-balls For each such food item return

image text in transcribed image text in transcribed 

Write a relational algebra expression that returns the food items required to cook the recipe "Pasta and Meat-balls" For each such food item return the item paired with the number of ounces required by the recipe Write a relational algebra expression that returns food items that are sold at "Aldi" and their price. Write a relational algebra expression that returns food items (item) that are of type "Wheat product" or of type "Meat" and have at least 20 calories per ounce (attribute calories) ingredient name recipe Pasta and Meatballs Cheese Soup Burger inventor recipe Pasta and Meatballs foodItem ounces Pasta and Meatballs kitchen Le cook The french Cowboys Italian French American Pasta and Meatballs Pasta and Meatballs Cheese Soup Pasta Meatballs Tomato Sauce 50 10 Onions 1 Onions 4 Cheese Soup Cheese 15 Cheese Soup Bread 20 Burger Bread 10 Burger Ground Beef 20 foodItem stock item Pasta type calories Wheat product 20 Meatballs Meat Tomato Sauce Sauce Onions Vegetables Cheese Diary Bread Ground Beef Wheat product Meat 895-899 foodItem shop price 40 Pasta Aldi Meatballs Aldi 1 Tomato Sauce 30 Tomato Sauce Aldi Walmart 25 Cheese Treasury Island 15 59335 10 45 underlined attribute form the primary key of a relation The attribute recipe of relation ingredient is a foreign key to relation recipe. The attribute foodItem of relation ingredient is a foreign key to relation foodItem. The attribute foodItem of relation stock is a foreign key to relation foodItem.

Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate Accounting

Authors: kieso, weygandt and warfield.

14th Edition

9780470587232, 470587288, 470587237, 978-0470587287

More Books

Students also viewed these Accounting questions

Question

Establish identity. cos( + k) = (-1)k cos , k any integer

Answered: 1 week ago