in Databases
1,691 views
1 vote
1 vote

 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

in Databases
by
1.7k views

3 Answers

2 votes
2 votes
(B) greater than R×S

Reason: Every join operation is divided into two parts

First, cross product is calculated.

Second, then the given select conditions are checked. In case of natural join similar name attributes are checked thus increasing the computational cost of it.

CORRECT ME IF I AM WRONG.
1 vote
1 vote

Temp1 ∩ temp2 = Empty

Temp1 × Temp 2 = 3*3 = 9

Temp ⋈ temp2 = 3*3 [cross join operations] +9[checks to match two columns]

It should be greater than   R×S

3 Comments

Y wil u have cross join operations and checks to match the two columns seperate? They can be done together only right? compare each tuple of Temp1 with each tuple of Temp2, which will give 3*3=9. Why will we again check if there is any column matching in Temp1 and Temp2?
0
0
Yes, correct.But since we have extra checks here the computation cost would be higher on natural join side.Isn't it?
0
0
Y wil we have extra checks?
0
0
0 votes
0 votes
my question is this there is no common atrrib between R and S then why natural join operator do comparison and multiply operation.

explain pls!!!
edited by