Question: Consider the computer product database schema below. Product(maker, model, type) PC(model, speed, ram, hd, price) Laptop(model, speed, ram, hd, screen, price) Printer(model, color, type, price)

 Consider the computer product database schema below. Product(maker, model, type) PC(model,

Consider the computer product database schema below. Product(maker, model, type) PC(model, speed, ram, hd, price) Laptop(model, speed, ram, hd, screen, price) Printer(model, color, type, price) Maker of a product is the manufacturer firm. models are numbers for PCs, Laptops, and Printers. Type of a product is pc, laptop", or "printer. Color for printer is true for color printers, false for black and white printers. Printer type is laser" or "inkjet. PC models are four-digit numbers 1XXX. Laptop models are four-digit numbers 2XXX. Printer models are four-digit numbers 3XXX. Write the following queries in Relational Algebra: a) Find the model number and price for all color laser printers. b) Find the manufacturers that produce PC's or Laptops, but not printers. c) Find the manufacturers that produce laptops who has a hard disk higher than 120 GB and a memory (RAM) of at least 1024 MB and a screen size of at least 17.0 inch, together with the laptop models and prices of the models. d) Find the manufacturer pairs that produce the same PC models with the speeds of at least 2.5 MHz. Report the pairs only once. e) Find the Laptop models that are produced by at least three different manufacturers. Do this i) without aggregate operators, ii) with aggregate operators. f) Find the manufacturers that produce all PCs and laptops whose speed is at least 2.50. g) Find the manufacturers who produce exactly one PC, one Laptop, and one Printer model. Do this i) without aggregate operators, ii) with aggregate operators. h) Find the manufacturer(s) who produce Laptops with the highest speed. Do this i) without aggregate operators, ii) with aggregate operators. i) Find the pairs of laptops (model) with the same speed, RAM, and screen size. Report the pairs only once

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!