0% found this document useful (0 votes)
13 views3 pages

Bjectives:: Exercise 1

The document outlines a lab module focused on creating Entity Relationship (ER) diagrams based on various specifications, including a movie database, a library system, and an airline's flight management. Each exercise requires students to identify entities, attributes, and relationships, and to design ER diagrams accordingly. Additionally, there are exercises related to I/O diagrams for a medical center and a media library, emphasizing the representation of relationships and cardinalities in data modeling.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Bjectives:: Exercise 1

The document outlines a lab module focused on creating Entity Relationship (ER) diagrams based on various specifications, including a movie database, a library system, and an airline's flight management. Each exercise requires students to identify entities, attributes, and relationships, and to design ER diagrams accordingly. Additionally, there are exercises related to I/O diagrams for a medical center and a media library, emphasizing the representation of relationships and cardinalities in data modeling.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Module : Informatique 4

Lab 1 : Entity Relationship Diagram


Objectives :
The objective of this lab is to draw an Entity Relationship (ER) diagram from a given
specification (or problem statement)
After completing this Lab, students are expected to be able to draw an ER diagram from a given
specification (or problem statement).

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).

1. Can a patient have multiple visits?


2. Can a doctor see multiple patients in the same consultation?
3. Can multiple medications be prescribed in the same consultation?
4. Can two different doctors prescribe the same medication?
Exercise 5 :

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.

1. Complete the model in Figure 3 by adding the cardinalities.


2. Assume that each performer uses one instrument (voice, piano, guitar, etc.) and only
one on a track. Where should the attribute "Instrument" be placed in the previous
model?
3. Transform the "Plays" association in Figure bellow into an entity. Provide the new
model, including the cardinalities.
4. Now introduce the entities Author (of a work) and Publisher of a disk into the
diagram. A disk has only one publisher, but a work can have multiple authors.

 Plage → Track
 Disque → Disk
 Œuvre → Work
 Interprète → Performer

You might also like