Question: Customer ( customer _ id , c _ name, city ) Hotel ( hotel _ id , h _ name, city, stars ) Reservation (
Customer customerid cname, city
Hotel hotelid hname, city, stars
Reservation hotelid customerid cost
and the following query:
Find names of all star hotels which are reserved by customers from
Minneapolis, with a reservation cost of at least $
a The table below gives an example tree Tree for the evaluation plan for the above query. Give two other possible equivalent trees for the given one.
tableTree: A
b Given the statistics that of the reservation costs are more than $ the customers' city is uniformly distributed in cities and of the hotels are stars. Which Tree would you choose to be the most efficient and why? Explain also why the other two trees are not efficient enough.
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
