The Simplest Join — Nested-Loops
Requires two nested loops:
For each tuple in outer relationFor each tuple in inner, compareIf match on join attribute, output
Block nested loops join: read & match page at a time
What if join attributes are indexed?
Inefficient if size of inner relation > memory (keep swapping pages); requires sequential search for match