Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a database with two tables, namely, Customer and Purchase. There are 4000 records in Customer table and 75000 records in Purchase table. One disk

Consider a database with two tables, namely, Customer and Purchase. There are 4000 records in Customer table and 75000 records in Purchase table. One disk page can store 10 Customer records or 15 Purchase records. Assume that 202 memory pages are used as buffer. What are the IO cost (excluding IO cost to write results to disk) of the following join operations between Customer table and Purchase table (measured in the number of disk page accesses)? Which strategy appears to have the lowest cost?

Nested-Loop Join (Purchase is in the outer loop).

Nested-Loop Join (Customer is in the outer loop).

Partition-hash join.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

Show that the summation -1 logi is O(n log n)

Answered: 1 week ago

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago