Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw the initial query tree for this query show how the query tree is optimized (one rule at a time) and write the SQL query
Draw the initial query tree for this query show how the query tree is optimized (one rule at a time) and write the SQL query for the final optimized query tree.
Q2: List the name of publisher and the total number of books from that publisher in inventory from branches that are located in Eastshore Mall.
SELECT p.PublisherName as Publisher, Sum(i.OnHand) as TotalBooks FROM Publisher p, Book b, Inventory i, Branch r WHERE p.PublisherCode = b.PublisherCode and b.BookCode = i.BookCode and i.BranchNum = r.BranchNum and r.BranchLocation = 'Eastshore Mall' GROUP BY p.PublisherName;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started