2 2 votes Consider a relation R with 2000 records and relation S with 500 records. Size of each record is 5 Byte and block size is 100 Byte, then minimum number of block access that are needed block nested loop join. I think its answer should be 2525. Databases databases natural-join block-nested-loop-join + – Shubhanshu 3.1k views answer comment Share Follow Print See all 9 Comments 9 9 Comments reply rahul sharma 5 commented Aug 18, 2017 reply Follow flag what is the answer?i got 10025 0 0 replyShare Shubhanshu commented Aug 18, 2017 reply Follow flag how you get this please tell your steps. 0 0 replyShare Habibkhan commented Aug 18, 2017 reply Follow flag Plz check this link..Will be helpful for u @Shubhanshu.. https://gateoverflow.in/76143/block-nested-loop-join 0 0 replyShare Shubhanshu commented Aug 18, 2017 reply Follow flag @Habibkhan Sir, my approach is like this Relation R has Block = X = 100 Relation S had Block = Y = 25 then min no of block access uing block nested loop join is min ( X +XY, Y + XY) so it should be 2525 0 0 replyShare just_bhavana commented Aug 18, 2017 reply Follow flag 2525 is correct 0 0 replyShare rahul sharma 5 commented Aug 19, 2017 reply Follow flag @Shubhanshu you are calculating block nested join but question says block nested loop join 0 0 replyShare joshi_nitish commented Aug 19, 2017 reply Follow flag 2525 seems correct @shubhanshu 0 0 replyShare rahul sharma 5 commented Aug 19, 2017 reply Follow flag @shubhanshu :- Sorry for consussion. I got confused with nested loop join. 2525 is correct 0 0 replyShare bharti commented Oct 17, 2017 reply Follow flag @rahul sharma 5 isn't it same " you are calculating block nested join but question says block nested loop join" ??? so correct answer is 2525. 0 0 replyShare Please log in or register to add a comment.
5 5 votes 2525 is the right answer. Their were many wrong questions in this ace test. Prakhar Shukla 1 answered Sep 10, 2017 Prakhar Shukla 1 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes watch this video for concept https://www.youtube.com/watch?v=rT4eI3p3tVk Here, S is outer relation and R is inner relation. For a minimum number of block accesses, outer relation should be smaller. Number of records in each block = (Size of Block)/(Size of Record) = 100B/5B = 20 NR = Total Number of records in R = 2000 BR = Number of blocks in R = 2000/20 = 100 NS = 500 BS = 500/20 =25 Number of total block accesses = BS + BS*BR (for Block nested loop join) = 25 + 25*100 = 2525 nadeshseen answered Sep 14, 2019 nadeshseen comment Share Follow 0 reply Please log in or register to add a comment.