retagged by
610 views
0 votes
0 votes
Table T1 4000 record and 50 disk block Table T2  300 record 20 block has joined with specific condition, No index is available if nested loop join with most appropriate table in outer loop No of block access to read the data are ……….

what it would be if nested block joined used?
retagged by

1 Answer

0 votes
0 votes

@Abhisek Tiwari 4 watch this video for concept https://www.youtube.com/watch?v=rT4eI3p3tVk

R natural join S

Here, R is outer relation and S is inner relation. For a minimum number of block accesses, outer relation should be smaller.

Therefore R is T2

NR = Total Number of records in R

BR = Number of blocks in R

Number of total block accesses = BR + NR*BS (for nested loop join) = 15020

Number of total block accesses = BR + BR*BS (for Block nested loop join) = 1020

 

Related questions

2 votes
2 votes
0 answers
1
1 votes
1 votes
1 answer
2
rahul sharma 5 asked Dec 27, 2017
357 views
Can someone explain this question?
0 votes
0 votes
1 answer
3
vikas khuswaha asked Jan 25, 2016
465 views
plz explain ..is natural join commutative and associative.
0 votes
0 votes
0 answers
4