-- Nov 7 In-Class Exercise
The manufacturer, price, and type of printers which come in green.
SELECT maker, price, type
FROM Product, Printer
WHERE Printer.color = 'green' AND Product.model = Printer.model;
The manufacturers of laptops that do not sell PCs under $1000.
(SELECT maker
FROM Product, Laptop
WHERE Product.model = Laptop.model)
EXCEPT
(SELECT maker
FROM Product, PC
WHERE Product.model = PC.model, PC.price <1000;)
The manufacturer, price, and type of printers which come in green.
SELECT maker, price, type
FROM Product, Printer
WHERE Printer.color = 'green' AND Product.model = Printer.model;
The manufacturers of laptops that do not sell PCs under $1000.
(SELECT maker
FROM Product, Laptop
WHERE Product.model = Laptop.model)
EXCEPT
(SELECT maker
FROM Product, PC
WHERE Product.model = PC.model, PC.price <1000;)