2. Use the following schema and query plan to answer the corresponding questions R (a,b,c) B(R)=...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Use the following schema and query plan to answer the corresponding questions R (a,b,c) B(R)= 1000 T(R) = 10,000 Min (R,a) 01 Max (R,a) = 9000 V(R,b)= 100 V(R,c) : = <= 20 R1 (a) a 100 a 1000 S(d,e,f,g) B(S) = 1000 T(S) 10,000 V(S,e) = 10 V (S,f) = 100 V(S,d) = 50 V(S,g) = 40 (f) R (B+ tree index on a) (e) R4 (d) ab-100 v b=101 abcglj R5 R3 geh T(h,ij) B(T) = 1000 T(T) = 10,000 V(Th) = 100 R2 (B+ tree T(B+ tree index on h) (b) = 10 Af=1000 S index on (e,f) ) (11 points) b. Compute the cost of this query plan in terms of number of pages read from disk or written to disk. Assume that the B+ tree indexes on single columns cost 2.4 reads/lookup, the indexes on multiple columns cost 4 reads/lookup, and the buffer pool of the system can hold up to 252 frames (5 points) 2. Use the following schema and query plan to answer the corresponding questions R (a,b,c) B(R)= 1000 T(R) = 10,000 Min (R,a) 01 Max (R,a) = 9000 V(R,b)= 100 V(R,c) : = <= 20 R1 (a) a 100 a 1000 S(d,e,f,g) B(S) = 1000 T(S) 10,000 V(S,e) = 10 V (S,f) = 100 V(S,d) = 50 V(S,g) = 40 (f) R (B+ tree index on a) (e) R4 (d) ab-100 v b=101 abcglj R5 R3 geh T(h,ij) B(T) = 1000 T(T) = 10,000 V(Th) = 100 R2 (B+ tree T(B+ tree index on h) (b) = 10 Af=1000 S index on (e,f) ) (11 points) b. Compute the cost of this query plan in terms of number of pages read from disk or written to disk. Assume that the B+ tree indexes on single columns cost 2.4 reads/lookup, the indexes on multiple columns cost 4 reads/lookup, and the buffer pool of the system can hold up to 252 frames (5 points)
Expert Answer:
Answer rating: 100% (QA)
To compute the cost of the query plan in terms of t... View the full answer
Related Book For
Database management systems
ISBN: 978-0072465631
3rd edition
Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
If Y (p) is the laplace transform of y(t), which is the solution of the initial value problem { + y(t) = - dt p+1 1+p sin t satisfying y (0) = 1 and y'(0)=0, then the Y(p) equals P -2p + 1+p (1+p) ...
-
1) Describe in detail one method that utilizes antibodies as a tool. 2) What is the objective of this method?
-
In Exercises find the points of intersection of the graphs of the equations. r = 1 + sin 0 r = 3 sin 0
-
What is the ground-state electron configuration of calcium \((Z=20)\) ? A. \(1 s^{2} 2 s^{2} 2 p^{6} 3 s^{2} 3 p^{8}\) B. \(1 s^{2} 2 s^{2} 2 p^{6} 3 s^{2} 3 p^{6} 4 s^{1} 4 p^{1}\) C. \(1 s^{2} 2...
-
You are the chief financial officer (CFO) of Gaga Enterprises, an edgy fashion design firm. Your firm needs $10 million to expand production. How do you think the process of raising this money will...
-
k Jeremy (unmarried) earned $100,300 in salary and $6,300 in interest income during the year. Jeremy's employer withheld $10,000 of federal income taxes from Jeremy's paychecks during the year....
-
Suppose your company introduces a referral incentive for existing customers. Namely, cus- tomers can get a $500 discount on their customer service subscription for each customer lead that they refer...
-
At the beginning of the year, a company's balance sheet reported the following balances: Total Assets = $ 1 9 0 , 0 0 0 ; Total Liabilities = $ 2 5 , 4 2 0 ; Common Stock of $ 5 9 , 3 3 0 ; and...
-
The current price of the futures contract is $30. A six-month call option on the futures contract with a strike price of $30 is trading at a price of $3. What is the price of a six-month put option...
-
Vandelay Industries has a target capital structure consisting of 30% debt, 10% preferred stock, and 60% common equity. Vandelay has 20-year, 12% semiannual coupon bonds that sell at their par value...
-
A perpetuity is having steady cash flow. Year 1 payment is $1,000 and it will continue to go for forever on a yearly basis. What is the present value of this perpetuity at 10% rate.
-
Over the last six years the shares of company XYZ's stock had returns of 18 percent, 19 percent, 10 percent, 8 percent, 18 percent, and -7 percent. Required: (a)Calculate the arithmetic average...
-
A microphone factory wants to schedule order lot sizes for microphone grid. The anticipated demand for this item over the next 12 months start from Jan 2022 until Dec 2022 is 81.300, 23.040, 12.396,...
-
Phil is single, has indicated checkbox withholding on his 2021 Form W-4, and has no pre-tax deductions. He earned $1,925.00 during the most recent biweekly pay period. He needs to decide between...
-
As long as we can't lose any money, we have a risk-free investment." Discuss this comment. Q2: Both investing and gambling can be defined as "undertaking risk in order to earn a profit." Explain how...
-
TechnoBooks.com is in the process of reorganizing its website. A major issue is how to efficiently handle a large number of search results. In a human interaction study, it found that modem users...
-
Consider the following concurrency control protocols: 2PL, Strict 2PL, Conservative 2PL, Optimistic, Timestamp without the Thomas Write Rule, Timestamp with the Thomas Write Rule, and Multiversion....
-
Consider the following relational schema and briefly answer the questions that follow: 1. Define a table constraint on Emp that will ensure that every employee makes at least $10,000. 2. Define a...
-
Visit the Bloomberg Markets website at www.bloomberg.com/markets/stocks. Their interactive graph allows you to see cumulative returns for individual stocks as well as market indices. Over the last...
-
Eugene Fama and Robert Shiller recently won the Nobel Prize in economics. Go to http://nobelprize.org/nobel_prizes/economics/ and locate the press release on Eugene Fama and Robert Shiller. What was...
-
What are the implications of behavioral finance?
Study smarter with the SolutionInn App