Q2) Write a relational algebra expression that returns food items that are sold at "Aldi" and their price. Answer:

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter8: Restricting Rows And Sorting Data
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question
Q2) Write a relational algebra expression that returns food items that are sold at "Aldi" and their price.
Answer:
Transcribed Image Text:Q2) Write a relational algebra expression that returns food items that are sold at "Aldi" and their price. Answer:
Try to answer all the questions based on what you were learned.
• please write the RA's notations/expression clearly and in sequential order to show all the steps of your
answer.
Consider the following database schema and example instance:
ingredient
recipe
name
Pasta and Meatballs
Cheese Soup
Burger
item
Pasta
Meatballs
Tomato Sauce
Onions
Cheese
Bread
Ground Beef
inventor
Le cook
The french
Cowboys
foodItem
type
Wheat product
Meat
Sauce
Vegetables
Diary
Wheat product
Meat
kitchen
Italian
French
American
calories
20
40
5
1
30
25
45
recipe
Pasta and Meatballs
Pasta and Meatballs
Pasta and Meatballs
Pasta and Meatballs
Cheese Soup
Cheese Soup
Cheese Soup
Burger
Burger
foodItem
Pasta
Meatballs
Tomato Sauce
Tomato Sauce
Cheese
foodItem ounces
Pasta
50
Meatballs
Tomato Sauce
Onions
Onions
Cheese
Bread
Bread
Ground Beef
stock
shop
Aldi
Aldi
Aldi
Walmart
Treasury Island
price
5
2335
10
15
10
5
1
4
15
20
10
20
Notes:
■ Underlined attribute form the primary key of a relation.
■ The attribute recipe of relation ingredient is a foreign key to relation recipe. The
attribute foodltem of relation ingredient is a foreign key to relation foodItem-
The attribute foodItem of relation stock is a foreign key to relation foodItem.
Transcribed Image Text:Try to answer all the questions based on what you were learned. • please write the RA's notations/expression clearly and in sequential order to show all the steps of your answer. Consider the following database schema and example instance: ingredient recipe name Pasta and Meatballs Cheese Soup Burger item Pasta Meatballs Tomato Sauce Onions Cheese Bread Ground Beef inventor Le cook The french Cowboys foodItem type Wheat product Meat Sauce Vegetables Diary Wheat product Meat kitchen Italian French American calories 20 40 5 1 30 25 45 recipe Pasta and Meatballs Pasta and Meatballs Pasta and Meatballs Pasta and Meatballs Cheese Soup Cheese Soup Cheese Soup Burger Burger foodItem Pasta Meatballs Tomato Sauce Tomato Sauce Cheese foodItem ounces Pasta 50 Meatballs Tomato Sauce Onions Onions Cheese Bread Bread Ground Beef stock shop Aldi Aldi Aldi Walmart Treasury Island price 5 2335 10 15 10 5 1 4 15 20 10 20 Notes: ■ Underlined attribute form the primary key of a relation. ■ The attribute recipe of relation ingredient is a foreign key to relation recipe. The attribute foodltem of relation ingredient is a foreign key to relation foodItem- The attribute foodItem of relation stock is a foreign key to relation foodItem.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr