COS 597A, Fall 2008 - Problem Set 1

Due at 3:00pm, Monday September 29, 2008.

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 System Concepts, Fifth Edition, by Silberschatz,  Korth, and Sudarshan


Problem 1: 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 2: Chapter 6, exercise 6.21 parts b and c (page 259).  Represent any constraints on data or on relationships between data for your extension to the ER diagram.

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. For the ER diagram you developed to solve Problem 2 above, give the set of relations and constraints for a relational database scheme capturing that portion of the ER specification that has to do with shopping.  Do not give the relations capturing the relationships  written_by, published_by, stocks, and the entities author, publisher and warehouse.  If you represented constraints in Problem 2, explain which of these constraints can be captured in the relational model and how, and which of these constraints you cannot capture in the the relational model. 

Problem 5. 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.