You are on page 1of 2

Hong Kong Institute of Vocational Education (Tsing Yi)Department of Multimedia & Internet Technology

2005-06 Semester Two MIT3503: Internet Databases

Product Printer
model maker type code model color type price
PC010 A pc 0056456 PR985 N laser 250
LA189 A laptop 0684164 PR985 N laser 500
PR985 A printer 0786452 PR748 Y jet 230
PR748 B printer 0897755 PR748 Y jet 180
PC541 B pc 0567353 PR872 Y matrix 400

PC
code model speed ram hardDrive cdRom price
0056741 PC008 2.3 1.0 80 52x 250
0545407 PC010 2.8 1.0 160 52x 400
0541045 PC010 2.8 512 80 4x 650
1005463 PC541 3.0 1.5 270 4x 1200

Laptop
code model speed ram hardDrive screen price
7805785 LA189 1.3 512 80 11 850
0450245 LA561 2.0 512 80 15 1000
7072870 LA561 2.0 1.0 100 15 1100
9523700 LA872 2.4 1.0 160 17 1250

1. Find the model number, speed and hard drive capacity for all the PCs with prices below $500.

2. Find printer makers.

3. Find the model number, RAM and screen size of the laptops with prices over $1000.

4. Find all the records from the relation Printer for color printers.

5. Find the model number, speed and hard drive capacity of the PCs having 52x CD and prices less than
$600 or having 4x CD and prices less than $600.

6. Point out the maker and speed of the laptops having hard drive capacity more or equal to 100 Gb.

7. Find out the models and prices for all the products (of any type) produced by maker B.

8. Find out the makers that sale PCs but not laptops.

9. Find the makers of the PCs that have speed not less than 2.8MGz.

10. Find the printers having the highest price. Result set: model, price.

11. Find out the average speed of PCs.

12. Find out the average speed of the laptops priced over $1000.

13. Find out the average speed of the PCs produced by maker A.

14. For each value of speed find the average price of the PC with the same processor speed.

15. Find the hard drive sizes coinciding with two or more PCs.

16. Find the laptops having speeds less than all PC's.

Produced by Rosita LEE @ 15 October 2008 P. 1


Hong Kong Institute of Vocational Education (Tsing Yi)Department of Multimedia & Internet Technology
2005-06 Semester Two MIT3503: Internet Databases

17. Find the makers of the cheapest color printers.

18. For each maker find out the average screen size of the laptops produced by him.

19. Find the makers producing at least three distinct models of PCs.

20. Define the maximal price of PC produced by each maker.

21. Foreach value of PC speed that exceeds 2.8 MGz, define the average price of the PCs with identical
speeds.

22. Find the maker producing at least two different computers (both PC and laptop) having speed not less
than 1.0 MGz.

23. Find the model number of the product (PC, laptop, or printer) with the highest price.
24. Find the printer makers which also produce PCs with the lowest RAM and the highest-speed processor
among PCs with the lowest RAM.

25. Define the average price of the PCs and laptops produced by maker A.

26. Define the average size of the PC hard drive for each maker that also produces printers.

27. Define the average HD size (single value for all makers) of PCs produced by those makers that also
produce printers.

Produced by Rosita LEE @ 15 October 2008 P. 2

You might also like