Question: # Question 5 . For each pName ( product name ) list the total amount ( money ) sold. Note do not need to count
# Question For each pName product name list the total amount money sold. Note do not
need to count those haven't been sold ie don't have to do outer join, just do theta join
Hint: Join Product and Sale thetajoin then group by pName and compute SUM of sQuantity
sPrice.
a Relational Algebra expression pt
b Resulting Relation pt
Questions and use the following relational schemas and instances of relations.
Given a relational database schema and the current instances for the relations in this database:
Product pNo: int, pName: string, pCategory: string, pPrice: double, pquantity: int
Sale sNo: int, pNo: int, squantity: int, sPrice: doublelei
Product
Sale
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
