Introduction to Database Design – ER modeling

lab notes

Example: E-R diagram for a car-insurance company with the following information:

Step one - Define Entity set

Step two - Relationship sets

Step tree - Build ER diagram

 

Exercise 2.3 Consider the following information about a university database:

Design and draw an ER diagram that captures the information about the university. Use only the basic ER model here, that is, entities, relationships, and attributes. Be sure to indicate any key and participation constraints.

Solution

 

Exercise 2.5 Notown Records has decided to store information about musicians who perform on its albums (as well as other company data) in a database. The company has wisely chosen to hire you as a database designer (at your usual consulting fee of $2,500/day).

 

Design and draw an ER diagram for your schema. The following information describes the situation that the Notown database must model. Be sure to indicate all key and cardinality constraints and any assumptions that you make. Identify any constraints that you are unable to capture in the ER diagram and briefly explain why you could not express them.

Solution