| Algebra | SQL |
|---|---|
r ⋈ θ s | r JOIN s ON θ |
r ⋈ s | r NATURAL JOIN s |
instructor ⋈ teachesπ instructor.name, department.dept_name (instructor ⋈ instructor.salary > department.budget (σ building = 'Champlain' (department)))- Which attribute do
instructorandcoursehave in common? - How many tuples does
instructor ⋈ coursereturn? Work it out, then run it to check.