A keen field hockey fan wants to keep track of which countries won which medals in the various summer Olympics for both the men’s and women’s events
SELECT itemname, itemcolor FROM item WHERE itemcolor = 'Brown' AND EXISTS (SELECT * FROM lineitem WHERE lineitem.itemno = item.itemno);
SELECT itemname, itemcolor FROM item WHERE itemcolor = 'Brown' AND NOT EXISTS (SELECT * FROM lineitem WHERE lineitem.itemno = item.itemno);
This page is part of the promotional and support material for Data Management (open edition) by Richard T. Watson |