
COMPSCI 410/510 Databases (Spring 09)
Homework 2, 60/75 points, Due on 2/18/09 (Wednesday)
5 extra credit if you type your homework solution
•(10 points) Exercise 5.11 on page 166. You only need to specify the constraint violations
for each operation. You can ignore the ways of enforcing the constraints.
•(10 points) Exercise 5.14 on page 167. Please specify foreign keys as in Figure 5.7.
•Exercise 6.16 on page 214.
–(30 points) For students of COMPSCI 510: do all queries from ato j.
–(15 points) For students of COMPSCI 410: only do queries a, c, e, g, i. How-
ever, you are welcomed to submit solutions of other queries.
•(10 points) Exercise 6.22 on page 217.
•(15 points) Map the ER Schema diagram for the University database from Exercise
3.16 to a relational schema diagram. Please use the attached ER diagram. Identify all
the primary and foreign keys, and specify the referential integrity constraints among
them using the arrows as in Figure 5.7.
1