Question: Question 6 Consider the following database Schema, where patients can have many appointments in different hospitals. Hospital (HNo Hname) Patient (PID, Pname) Appointment (HNO, PID,

 Question 6 Consider the following database Schema, where patients can have

Question 6 Consider the following database Schema, where patients can have many appointments in different hospitals. Hospital (HNo Hname) Patient (PID, Pname) Appointment (HNO, PID, ApptDate price) Based on the following assumptions: 10 tuples in Hospital; 50 tuples in Patient; 100 tuples in appointments; 5 appointments for Patient ID=555 no indexes or sort keys; results of any intermediate operations stored on disk; cost of the final write is ignored; tuples are accessed one at a time. Calculate the cost of the following strategies to retrieve the list of appointments for patient ID=555, and show which one is more efficient. 1. O PID=555 ((Hospital * Appointment) * Patient) 2. Hospital * (Appointment * (o PID=555 Patient)) Question 6 Consider the following database Schema, where patients can have many appointments in different hospitals. Hospital (HNo Hname) Patient (PID, Pname) Appointment (HNO, PID, ApptDate price) Based on the following assumptions: 10 tuples in Hospital; 50 tuples in Patient; 100 tuples in appointments; 5 appointments for Patient ID=555 no indexes or sort keys; results of any intermediate operations stored on disk; cost of the final write is ignored; tuples are accessed one at a time. Calculate the cost of the following strategies to retrieve the list of appointments for patient ID=555, and show which one is more efficient. 1. O PID=555 ((Hospital * Appointment) * Patient) 2. Hospital * (Appointment * (o PID=555 Patient))

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 Databases Questions!