2,629 views
1 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

3 Answers

2 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 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

0 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
Position:
Show:

Related questions

0 0 votes
3 3 answers
3.3k
3.3k views
uzumzki asked Aug 17, 2015
3,266 views
R(ABC)     S(BDE)F:A->B      B ->C     B->D     D->EAND R HAS 100 TUPLES AND S HAS 200
0 0 votes
0 0 answers
583
583 views
set2018 asked Sep 29, 2017
583 views
Can we say inner and self join are same ?
1 1 vote
1 1 answer
49
49 views
GO Classes asked 4 days ago
49 views
Consider $\text{Postings(post, position, user, ptext)}$.Two aliases of this relation are used:$\text{P1 = Postings}$$\text{P2 = Postings}$Consider the query:SELECT count(...
0 0 votes
0 0 answers
1.6k
1.6k views
aditi19 asked May 8, 2019
1,580 views
how to write the query for natural join on three relations in SQL using the NATURAL JOIN clause?