Entity Relationship Diagram Problems



Hospital Information System

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.



Manufacturing Company

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.



Public Housing

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.


The Music Database

The music database stores details of a personal music library, and could be used to manage your MP3, CD, or vinyl collection. Because this database is for a personal collection, it’s relatively simple and stores only the relationships between artists, albums, and tracks. It ignores the requirements of many music genres, making it most useful for storing popular music and less useful for storing jazz or classical music. (

Requirements for our database:

There’s no requirement to capture composers, group members or sidemen, recording date or location, the source media, or any other details of artists, albums, or tracks.


The Flight Database

The flight database stores details about an airline’s fleet, flights, and seat bookings. Again, it’s a hugely simplified version of what a real airline would use, but the principles are the same.

Consider the following requirements list:


Consulates in Embassies

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


Car Dealership

The dealership sells both new and used cars, and it operates a service facility. Base your design on the following business rules:


Congress

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.


Examples taken from a variety of sources, e.g., California Polytechnic State University, the open source textbook Database Design,