-- Nov 6 In-Class Exercise Thread
1.The manufacturer, price, and model of laptops which have more than 16GB of ram.
SELECT Product.maker, Laptop.price, Laptop.model
FROM Product, Laptop
WHERE Product.model = Laptop.model AND Laptop.ram > 16
2. The manufacturers of printers that do not sell PCs under $800.
( SELECT Product.maker
FROM Product, Printer
WHERE Product.model = Printer.model )
EXCEPT
( SELECT Product.maker
FROM Product, PC
WHERE Product.model = PC.model AND PC.price < 800)
(
Edited: 2019-11-06)
1.The manufacturer, price, and model of laptops which have more than 16GB of ram.
SELECT Product.maker, Laptop.price, Laptop.model
FROM Product, Laptop
WHERE Product.model = Laptop.model AND Laptop.ram > 16
2. The manufacturers of printers that do not sell PCs under $800.
( SELECT Product.maker
FROM Product, Printer
WHERE Product.model = Printer.model )
EXCEPT
( SELECT Product.maker
FROM Product, PC
WHERE Product.model = PC.model AND PC.price < 800)