

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


PC(model, speed, ram, hdd, price) PC-Order(order-id, customer-type, model, quantity)
Using a CHECK constraint on the PC-Order table, express the constraint that a business customer cannot order a PC model whose price is below $1,000. You do not need to show the entire CREATE TABLE statement. Show only the CHECK constraint part in the CREATE TABLE statement.
For the hard disk described above, answer the following questions. In addition to the answers, please write the formula that shows how you derived each answer.
(a) What is the capacity of the drive? (Assume a megabyte is 1,000,000 bytes, and a gigabyte is 1,000,000,000 bytes) (b) What is the average rotational delay? (c) What is the burst transfer rate of the disk? (d) What is the average time to read a random sector from the disk?
10 30 50
50
(a) Example for insertion
50
10 20 30 50 60 70
30 70
(b) Example for deletion
Figure 1: Examples for Problem 6
(a) The data file (the entire table) (b) A dense index on the data file (c) A sparse index on the data file
(b) Show the B+tree structure after we delete 20, 10, and 70 from Figure 1(b) in the given order. (Comments: Be careful with exactly when an underflow occurs.)