Work through the following materials writing one sample query for each mechanism using the modified version of the
movies database (see code/05sql/guide05.sql
Basic SQL (Section 6.3) — Review basic SQL as needed, then write sample queries that:
Use one or more tuple variables (Section 6.3.2).
Use one or more of the set operations, e.g.,
UNION
, EXCEPT
, INTERSECT
(Section 6.3.4).
Advanced SQL (Sections 7.1.1–7.1.5) — This will include more new material; write sample queries that:
Select based on a NULL field value (Section 7.1.1).
Implement a nested sub-query, using [NOT]
EXISTS
, IN
, ANY
or ALL
(Sections 7.1.2–7.1.4).
Implement a correlated sub-query (Section 7.1.3).