Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started