Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started