COS 425, Fall 2006 - Problem Set 1

Due at 1:30pm, Monday October 2, 2006.

Collaboration Policy

You may discuss problems with other students in the class. However, each student must write up his or her own solution to each problem independently. That is, while you may formulate the solutions to problems in collaboration with classmates, you must be able to articulate the solutions on your own.

Late Penalties



Chapter, exercise and page numbers refer to the course text Database Management Systems, 3rd edition, by Ramakrishnan and Gehrke


Problem 1:
Part a Chapter 2, exercise 2.2, pg. 52, part 1.
Part b Chapter 2, exercise 2.2, pg. 52, part 2.

Problem 2 Chapter 2, exercise 2.6, pg. 53-54.

Problem 3  Consider a database that holds information about movies and their distribution to movie theaters:

Draw an ER diagram describing the database.  Represent the constraints on data and the constraints on relationships between data. Are there any constraints in the informal specification that you cannot represent in the ER diagram? If so, for each such constraint state why you cannot represent it.


Problem 4 The subclasses in an "IS A" hierarchy can satisfy each of the two constraints "overlapping" and "covering" independently. In class we had examples of "not overlapping and covering (edited books and authored books) and overlapping and not covering (student and employee of PU people).  Give an example for each of the other two possibilities: (overlapping and covering) and (not overlapping and not covering).  Your examples should be easy to understand and should not be taken from the text or lecture.

Problem 5. For your ER diagram solving Problem 2 above, give the set of relations and constraints defining the relational database schema capturing the ER specification. Explain which constraints represented by the entity-relationship model can be captured in the relational model and how, and which constraints you cannot capture in the the relational model. You may use SQL or the specification style used in lecture.

Problem 6. For your ER diagram solving Problem 3 above, give the set of relations and constraints defining the relational database schema capturing the ER specification. Explain which constraints represented by the entity-relationship model can be captured in the relational model and how, and which constraints you cannot capture in the the relational model. Again, you may use SQL or the specification style used in lecture.