CS FundamentalsHardGATE CS · Product placement
R has 500 tuples in 50 blocks and S has 4000 tuples in 200 blocks. With only enough memory for one block of each relation, how many block transfers does the TUPLE-at-a-time nested-loop join with R as outer need, and how many does the block nested-loop join with R as outer need?
- A. 200,200 and 10,200
- B. 100,050 and 10,050
- C. 2,000,050 and 10,050
- D. 100,050 and 100,000
Correct answer: B. 100,050 and 10,050
Tuple NL reads S once per R tuple: 500·200 + 50. Block NL reads S once per R block: 50·200 + 50.
More DBMS and SQL questions
- Under BOTH wait-die and wound-wait deadlock prevention, which transaction can be rolled back when a lock conflict occurs?
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B, C, D, E, F) with functional dependencies E → B, F → A, B → A, C → E is decomposed into R1(A, B, F), R2(B, D, E), R3(C, E). Which…
- On R(A, B, C, D, E), F = {AB → C, DE → C, B → C} and G = {B → DE, E → AC, D → A}. Which statement is correct? ("F covers G" means every FD…
- R(A, B, C, D, E, F) has FDs E → AB, C → A, DE → AB, B → EF. Each option is a relation schema obtained by projecting R, with the…
- Classify the schedule W3(B), R1(A), W1(B), C1, W2(A), W3(A), R2(A), W2(B), C3, C2 (Ci = commit of Ti) by the strongest property it…