Question: Customer ( customer _ id , c _ name, city ) Hotel ( hotel _ id , h _ name, city, stars ) Reservation (

Customer (customer_id, c_name, city)
Hotel (hotel_id, h_name, city, stars)
Reservation (hotel_id, customer_id, cost)
and the following query:
Find names of all 5-star hotels which are reserved by customers from
Minneapolis, with a reservation cost of at least $1000.
a. The table below gives an example tree (Tree A) for the evaluation plan for the above query. Give two other possible equivalent trees for the given one.
\table[[,,],[,,],[Tree: A,,]]
b.) Given the statistics that 90% of the reservation costs are more than $1000, the customers' city is uniformly distributed in 3 cities and 25% of the hotels are 5 stars. Which Tree would you choose to be the most efficient and why? Explain also why the other two trees are not efficient enough.
Customer ( customer _ id , c _ name, city ) Hotel

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!