ER Diagrams

Course Content Specification

An Entity-relationship (E-R) diagram is a graphical representation of the entities in a system. It is used to summarise the relationship that exists between two or more entities.

An E-R diagram indicates:

Structure of an ER Diagram

In an E-R diagram:

E-R diagrams - worked example

A relational database is used by a travel agency to store details of Scottish holiday resorts and hotels in each resort.  The entities, attributes and keys are shown in the tables below:

The resulting E-R diagram is shown below:

E-R diagrams can also show the attributes that are stored in each entity.

In a coursework or exam at Higher you usually would not be required to add all of the attributes of each entity.