COS 597A, Fall 2011 - Problem Set 1

Due at 3:00pm, Monday October 3, 2011.

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 Chapter 2, exercise 2.6, pg. 53-54.

Problem 2  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 3  For your ER diagram solving Problem 1 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 4  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. Again, you may use SQL or the specification style used in lecture.