Question: Q 2 [ 5 0 % ] Consider the following SQL query: SELECT * FROM R , S WHERE ( R . c = S
Q Consider the following SQL query:
SELECT
FROM R S
WHERE RcSc AND Ra AND Ra AND Sb
Given the above SQL query, calculate a the cost number of block accesses and b the
output size number of tuples produced by the query plan below for this query.
The following information can be used:
The relation schemas are Ridac and Sidbc The attributes idab and c are
integers; id is a key for both R and S
R has records and S has records.
The domain of attribute Ra is
The domain of attribute Sb is
The domain of attributes Rc and Sc is
The values of nonkey attributes are uniformly distributed.
All values in the attribute domains appear in the relations.
Each block can hold records.
The smaller temporary table between T and T is used as the outer relation of
the block nested loop join.
Show your steps clearly.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
