Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume you have the following files: Employee with 6000 records and 2000 blocks. Department with 50 records and 5 blocks. Assume that the available buffer

Assume you have the following files: Employee with 6000 records and 2000 blocks. Department with 50 records and 5 blocks. Assume that the available buffer space=7. (Show your work) A) Calculate the cost (block access) using "Nested-loop join" technique of the following query: (Employee Dno=Dnumber Department) [3 POINTS]. - Suppose the secondary indexes exist on both the attributes Ssn of Employee and Mgr_ssn of Department, with the number of index levels xSsn=4 and xMgr_ssn=2 respectively. B) Calculate the cost (block access) using "Single-loop join" technique of the following query: (Department MGRSSN =SSN Employee) [2 POINTS]. -Suppose that both files need to be sorted. C) Calculate the cost (block access) using "Sort-merge join" technique of the following query: (Employee Dno=Dnumber Department) [3 POINTS]

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions