GATE CS 2014 · Set-2 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0097

Consider a join (relation algebra) between relations r(R)and s(S) using the nested loop method. There are 3 buffers each of size equal to disk block size, out of which one buffer is reserved for intermediate results. Assuming size(r(R))\(\lt\)size(s(S)), the join will have fewer number of disk block accesses if
  1. A
    relation r(R) is in the outer loop.
  2. B
    relation s(S) is in the outer loop
  3. C
    join selection factor between r(R) and s(S) is more than 0.5.
  4. D
    join selection factor between r(R) and s(S) is less than 0.5

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1989/gate2014-2-30

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com