Bjectives:: Exercise 1
Bjectives:: Exercise 1
Exercise 1 :
Consider a movie database in which data is recorded about the movie industry. The data
requirements are summarized as follows:
• Movies are identified by their title and year of release. They have a length in minutes. They
also have a studio that produces the movie and are classified under one or more genres (such as
horror, action, drama etc). Movies are directed by one or more directors and have one or more
actors acting in them. The movie also has a plot outline. Each movie also has zero or more
quotable quotes which are spoken by a particular actor acting in the movie.
• Actors are identified by their names and date of birth and act in one or more movies. Each
actor has a role in the movie. • Directors are also identified by their names and date of birth
and direct one or more movies. It is possible for a director to act in a movie (not necessarily in
a movie they direct).
• Studios are identified by their names and have an address. They produce one or more movies.
Design an Entity-Relationship diagram for the movie order database
Exercise 2 :
We want to set up a database for a small library containing books that can be borrowed:
A book is characterized by an identification number, a title, an author, and a publisher.
Additionally, a book is described by a set of keywords that indicate the topics it covers. The
library has one or more copies of each book. A copy, which is essentially the physical
manifestation of a book, is identified by a number and is characterized by its location on the
shelves and its purchase date. A copy can be borrowed by a borrower, who may borrow multiple
copies. A borrower is identified by a number and is characterized by their name and address.
Design an Entity-Relationship diagram for the movie order database
Exercise 3 :
Horizon Bound Airlines (HBA) makes daily flights between cities in the continental United States.
The major resources of which its information system must keep track are airplanes and flight
employees. Each flight that is scheduled must have at least one pilot and at least one crew member
(e.g., steward, stewardess). In addition, each flight will have a departure time and location as well
as a destination time and location. Pilots and crew members have respective home bases, to which
they return at the end of an assigned flight. Each airplane has an assigned maintenance base.
Draw an ERD based on the above scenario.
Please include a list of attributes for each entity in your diagram.
For each entity, identify the primary key.
Exercise 4 :
You are given an I/O diagram (Figure 1) representing visits to a medical center.
Answer the following questions based on the characteristics of this diagram (in other words,
indicate whether the described situation is representable, regardless of its plausibility).
Here is (Figure bellow) the beginning of an I/O diagram for managing a media library. The
requirements specification is as follows: a disk consists of a set of tracks. Each track contains
one and only one work, but a work can span multiple tracks (for example, a symphony with 4
movements). Additionally, for each track, the performers are known.
Plage → Track
Disque → Disk
Œuvre → Work
Interprète → Performer