The following tables form part of a database held in a relational DBMS ( Primary Key ,
Fantastic news! We've Found the answer you've been seeking!
Question:
The following tables form part of a database held in a relational DBMS (Primary Key,Foreign Key):
Item (Item _ID, Item_Name, Item_Price)
Customer (Customer_No, L_Name, F_Name, Address, Type)
CustomerItem (Customer_No, Item_No, Date_Purchased)
Employee (Employee_No L_Name, F_Name, Role)
Give the relational algebra (not SQL) expressions for the following queries (3.75 marks each):
- Show the Customer(s) who did not purchase any item (*Show the Customer_No only)
- Show the name of items purchased by "VIP" Customers
- Show the "Wholesale" Customers who have purchased any item on 01-01-2022 (*Show the Customer_No only)
- Examine the following relational algebra, and answer the following questions:
Customer_No, L_Name (Customer)
L_Name, Employee_No (Employee)
- Why is the relational algebra statement above incorrect?
- Rewrite the statement to correct the error
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date: