Question: Relational Algebra Exercise Given database schemas: Product ( maker , model, type ) PC ( model , speed, ram, hd , price ) Laptop (
Relational Algebra Exercise
Given database schemas:
Productmaker model, type
PCmodel speed, ram, hd price Laptopmodel speed, ram, hd screen, price Printermodel color, type, price
Questions:
a What PC models have a speed of at least
Rselect speed PC R project modelR
b Which manufacturers make laptops with a hard disk of at least GB R select hd laptop
Rnaturaljoin Product R R project makeR
c Find the model and price of all products of any type made by manufacturer B R Project modelselect maker BProduct
R Project model pricePC
RProject model pricelaptop R Project model priceprinter R R U R U R
R natural join R R
Exercise a
R:speed PC
R: model R
Exercise b
R: Ond Laptop R: Product DA R
R: Mmaker R
Exercise c
R:makerB Product DA PC
R: makerProduct R :makerProduct
R: model, price R
R: model, price R
R: model, price R R: R UR U R
Laptop Printer
Exercise d
R: Ocolr true AND ytpe laser Printer
R: model R
Exercise e
R: Otypelaptop Product
R:typePcProduct R: TmakerR
R: maker R R: R R
Exercise f
R: PpcPC
R: R DX PChd PChd AND PCm odel PCmodel R R : n d R
Exercise g
R: PpcPC
R: PpcPC
R: RX Pspeed PC sped AND PC amr PCram ANDPC model
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
