CIS 671, Winter 2002
Homework 3: Review - Entity-Relationship (ER) Design and Functional Dependencies
  1. Entity-Relationship (ER) Design. (EN) Exer 4.20
  2. Entity-Relationship (ER) Notation to UML Notation. (EN) Exer. 4.21
  3. Functional Dependencies, Candidate Keys and DB Design.
    Slide 16 of the ER Review with the "Meeting Locations" example includes the following entities:
            Organization(OrganizationName)
            Date(Day, Time)
            MeetingLocation(LocationID) - ID added to allow conversion to relational database.
    and the relationship MeetsAt relating those three entities.

    Transforming the MeetsAt relationship to a relation yields
            MeetsAt(LocID, OrganizationName, Day, Time)
    If we model MeetsAt as a ternary relationship, as done in the slide, the primary key would be
            LocID, OrganizationName, Day, Time
    If we had modeled MeetsAt as a binary relationship between Organization and MeetingLocation, with Day and Time as attributes, then the primary key would be just
            LocID, OrganizationName

    Questions:

    Suppose we want to enforce the following two constraints:

    Questions: Note that this problem could have been given in CIS 670.


D. S. Kerr
January 2002