Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Sql exercise
1.
2. SQL EXERCISE
Product (maker, model, type)
PC (model, speed, ram, hd, rd, price)
Laptop (model, speed, ram, hd, screen, price)
Printer (model, color, type, price)
1. Find the model number, speed, and hard-disk size for all PC’s whose price is under $1200.
2. Do the same as (1), but rename the speed column megahertz and the hd column gigabytes.
3. Find all the manufacturers of printers.
4. Find the model number, memory size, and screen size for laptops costing more than
$4000.
5. Find all the tuples in the printer relation for color printers. Remember that color is a
Boolean-valued attribute.
6. Find the model number, speed, and hard disk size for those PCs that have either a 12x or
16x DVD and a price less than $2000. You may regard the rd attribute as having a string
type.