Exercise 6.4.6 from the textbook. Write the following queries, based on the database schema
Product(maker, model, type)
Laptop(model, speed, ram, hd, screen, price)
PC(model, speed, ram, hd, price)
Printer(model, color, type, price)
of Exercise 2.4.1, and evaluate your queries using the data of that exercise .
Find the average speed of PC’s.
Find the average speed of laptops costing over $1000.
Find the average price of PC’s made by manufacturer “A”.
Find the average price of PC’s and laptops made by manufacturer “D”.
Find, for each different speed, the average price of a PC.
Find, for each manufacturer, the average screen size of its laptops.
Find the manufaturers that make at least three different models of PC.
Find for each manufacturer who sells PC’s the maximum price of a PC.
Find, for each speed of PC above 2.0, the average price.
Find the average hard disk size of a PC for all those manufacturers that make printers.