Join Order Selection

Joins are associative so RSTU are equivalent to

  1. ((RS)T)U
  2. (RS)(TU)
  3. R(S(TU))

→ Try to minimize the intermediate result
Need to decide which of the subexpressions is evaluated first

Cost of nested loop join is not symmetric