Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 6-2 Given B+ tree indices on name, and total-credit. The height of the indices are 4 and 2 respectively. SQL: SELECT * FROM student

image text in transcribed

Question 6-2 Given B+ tree indices on name, and total-credit. The height of the indices are 4 and 2 respectively. SQL: SELECT * FROM student WHERE name='Abdullah' AND total-credit 100 t = 0.1ms, ts = 10ms The number of tuples (pointers) name='Abdullah AND total-credit = 100 are 50 and 200 respectively. The number of common pointers are 5 and each tuple is in different block. a. Find the cost of the SQL using A9 algorithm. The indices are secondary index Query cost = index cost + data cost Cost = Cost of (name index + total-credit index) + 5 data b. Analyze the result Question 6-2 Given B+ tree indices on name, and total-credit. The height of the indices are 4 and 2 respectively. SQL: SELECT * FROM student WHERE name='Abdullah' AND total-credit 100 t = 0.1ms, ts = 10ms The number of tuples (pointers) name='Abdullah AND total-credit = 100 are 50 and 200 respectively. The number of common pointers are 5 and each tuple is in different block. a. Find the cost of the SQL using A9 algorithm. The indices are secondary index Query cost = index cost + data cost Cost = Cost of (name index + total-credit index) + 5 data b. Analyze the result

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

Auditing Principles And Techniques

Authors: Sanjib Kumar Basu, Andrei Alexandrescu

1st Edition

8177581783, 9788177581782

More Books

Students also viewed these Accounting questions

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

What are the issues of concern for each of the affected parties?

Answered: 1 week ago