Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Product (maker, model, type) . PC(model, speed, ram, hd, price) Laptop(model, speed, ram, hd, screen, price) Printer(model, color, type, price) Write the SQL statement and

image text in transcribed

Product (maker, model, type) . PC(model, speed, ram, hd, price) Laptop(model, speed, ram, hd, screen, price) Printer(model, color, type, price) Write the SQL statement and draw the optimized relational algebra query execution tree for each of the following queries (10 points/SQL 10 points/query tree): 1. What makers produce Laptops with screen larger than 15' that are cheaper than $1,000? 2. What makers produce PCs or Laptops, but do not produce Printers? 3. How many makers produce each type of product? 4. For each maker who produces PCs with more than 4 GB of ram, find the average price of these PCs with more than 4 GB of RAM) 5. For all the makers that produce PCs, Laptops, and Printers, find the minimum price of a package that includes a PC, a Laptop, and a Printer. 6. Out of all the makers that produce PCs, find the cheapest Laptop sold by them. 7. Find the maker that sells the most expensive PC and also sells Printers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started