What does a view store?
Which clause tests that no matching rows occur?
Two lists each contain 1 and 2. UNION of the two lists returns 1 and 2, once each.
Circle one: True False
What is the second way to list customers who never ordered?
Which query lists customers who never ordered?
List customers who never ordered, matching orders by customer id. Orders hold one NULL customer id. Which form still answers correctly?
CREATE VIEW NeverShipped AS SELECT name FROM Suppliers s WHERE NOT EXISTS (SELECT 1 FROM Shipments h WHERE h.supplier_id = s.id) defines a view that later queries can use as a table.
Circle one: True False
A join version returns one customer three times, the EXISTS version once. Why?