COMP9315 21T1 Final Exam The University of New South Wales
COMP9315 DBMS Implementation
21T1 Final Exam
DBMS Implementation
[Instructions] [PostgreSQL] [C]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8]

Question 6 (7 marks)

Consider the following scenario:

Ignoring the cost of writing the final result tuples, calculate minimum cost estimates for the (R ⋈ S) operation for each of following join strategies:

  1. block nested loop join, where you can choose either table as the outer relation

  2. sort-merge join, where neither table is sorted initially

  3. sort-merge join, where R is initially sorted, but S is not

  4. sort-merge join, where S is initially sorted, but R is not

  5. sort-merge join, where both tables are initially sorted

For each cost, show the minimum number of buffers required to acheive this cost.

Show all working.

Instructions:

End of Question