Entity Relationship Diagram Problems



Problem 1

We would like to design a database to maintain information about hospital staff, including doctors and nurses, and patients at the hospital. The information we need includes:

Note that there is no single right answer to this question, although some answers may be better than others.



Problem 2

Draw an ER diagram that models the information in the following scenario: A manufacturing company has several assembly plants in different cities.  Each plant produces one product which requires certain parts in its assembly.  The parts are from appropriate suppliers, located in different cities.  Obtained in bulk amounts, certain parts may be used in more than one product.



Problem 3

Imagine you work for the public housing agency of a city, and you have been charged with keeping track of who is living in the agency's developments over time. To help you in this task, you have decided to use a relational database for your record keeping. Your task is to design a database that allows you to capture the facts described below:

You will invent data for the three developments; two units in each development; and three families, one with 2 members, one with 3 members, and one with 4 members. Include records for each household making one move to another unit.

You may be interested to know that this assignment was inspired by records kept by the Boston Housing Authority about their developments. Hence, this type of problem has definite real-world importance.



Problem 4

In this problem, we shall design a database involving cities, the countries they are in, and "consulates." The relevant information:



Problem 5

Design an ER diagram for keeping track of information about votes taken in the U.S. House of Representatives during the current two-year congressional session.

Draw an ER diagram for the above application. State clearly any assumptions you make.



Home