477 views
0 0 votes

Consider three relations R1(X, Y, Z), R2(M, N, P ), and R3(N, X). The
primary keys of the relations are in Bold. The relations have 100, 30, and
400 tuples, respectively. The space requirements for different attributes are:
X = 30 bytes, Y = 10 bytes, Z = 10 bytes, M = 20 bytes, N = 20 bytes,
and P = 10 bytes. Let V (A, R) signify the variety of values that attribute
A may have in the relation R. Let V (N, R2) = 15 and V (N, R3) = 300.
Assume that the distribution of values is uniform.
 If R1, R2, and R3 are to be joined, find the order of join for the minimum cost. The cost of a join is defined as the total space required by
the intermediate relations. Justify your answer.

Please log in or register to answer this question.

Position:
Show:

Related questions

8 8 votes
1 answers 1 answer
2.6k
2.6k views
Aakash Das asked Jun 25, 2016
2,594 views
Let us consider 3 relations R1(ABD), R2(BCE) and R3(CF). The primary keys of R1 , R2 and R3 are A, B and C respectively. The number of tuples in R1, R2 and R3 are 50,4...
1 1 vote
3 3 answers
2.7k
2.7k views
Purple asked Jan 24, 2016
2,667 views
When , then the cost of computing is(A) the same as R S (B) greater the R S(C) less than R S (D) cannot say anything
0 0 votes
1 1 answer
91
91 views
GO Classes asked Sep 25
91 views
Consider $\mathrm{A}(\mathrm{c1},\mathrm{c2},\mathrm{c3})$ and $\mathrm{B}(\mathrm{c1},\mathrm{c2},\mathrm{c3})$, where $\mathrm{c1}$ is the primary key of each relation....
0 0 votes
1 1 answer
87
87 views
GO Classes asked Sep 25
87 views
Consider :$$\begin{aligned}\begin{gathered}\mathrm{Customer} \\[-2pt]\begin{array}{|c|c|}\hline\mathrm{cid} & \mathrm{name} \\\hline1 & \mathrm{Joe} \\2 & \mathrm{Betty} ...