Each task gives an expression. Write the SQL that returns the same relation.
| Algebra | SQL |
|---|---|
σ condition (r) | SELECT * FROM r WHERE condition |
∧ ∨ ¬ | AND OR NOT |
≠ ≤ ≥ | <> <= >= |
σ dept_name = 'Music' (instructor)σ dept_name = 'Comp. Sci.' ∧ salary > 80000 (instructor)σ credits = 3 ∨ dept_name = 'Physics' (course)σ ¬(building = 'Champlain') (department)- Before you run it: how many tuples does
σ tot_cred ≥ 60 (student)return? - Run it to check.