ER diagrams vs. EER diagrams: what’s the difference?

When designing your database, an entity-relationship diagram (ER or ERD) is an excellent way to visually lay out your plan. But in some cases, you may want to opt for an enhanced entity-relationship diagram (EER or EERD) which includes a few more elements than ER diagrams do.

So which one should you choose? When deciding which diagram is best for your project, consider the following.

What is an ER diagram?

An entity-relationship (ER) diagram, also called an entity-relationship model, is aptly named: it shows the relationships between entities. It is most commonly used to organize data within databases or information systems.

There are two kinds of ER diagrams: conceptual and physical. Conceptual diagram models can be used as the foundation for logical data models or to form commonality relationships between ER models as a basis for data model integration.

A conceptual ER diagram uses six standard symbols. They are:

  1. Entities are objects or concepts that represent important data. Also knows as strong entities or parent entities, these entities will often have weak entities that depend on them.
  2. Attributes are characteristics of an entity, i.e. many-to-many or one-to-one.
  3. Relationships are associations between entities.
  4. Weak entities depend on another entity.
  5. Multivalued attributes are attributes that can have more than one value.
  6. Weak relationships are the connections between a weak entity and its parent.

ER Symbols

Physical diagram models are more granular, showing the processes necessary to add information to a database. Rather than using symbols, they are made up of a series of tables.

Each entity is represented as a table with each field acting as an attribute of the entity containing it.

Entity Relationship Diagram

Entities are connected using a system of notation called crow’s foot notation. The styling of each lines endpoint distinguishes the relationship.

ER notation

The types of relationships of an ER diagram depend on the interactions the entity has with the other elements. Relationships can be one-to-one (1:1) or one-to-many (1:m). In some instances, the relationship will include many to many (m:m).

What is an EER diagram?

Enhanced entity-relationship (EER) diagrams are basically an expanded upon version of ER diagrams. EER models are helpful tools for designing databases with high-level models. With their enhanced features, you can plan databases more thoroughly by delving into the properties and constraints with more precision.

An EER diagram provides you with all the elements of an ER diagram while adding:

  • Attribute or relationship inheritances
  • Category or union types
  • Specialization and generalization
  • Subclasses and superclasses

Overall, an EER diagram builds off of an ER diagram by including elements that allow for aggregating, generalizing, and specializing.

Generalization and specialization act as opposites of one another. Generalization combines lower level entities into one that is a higher level. Meanwhile, specialization divides high-level entities into lower levels. With aggregation, two entities are treated as a single one.

By using the additional components, you can quickly sort and group the relationships within the system for efficient placement.

When to use which

Overall, both diagrams provide the ability to design your database with precision.

An ER diagram gives you the visual outlook of your database. It details the relationships and attributes of its entities, paving the way for a smooth database development in the steps ahead.

EER diagrams, on the other hand, are perfect for taking a more detailed look at your information. When your database contains a larger amount of data it is best to turn to an enhanced model to more deeply understand your model.

So when should you use which? Honestly, both are useful, and it depends mostly on the size and detail of your data. The more complicated the data, the more likely you’ll need to use an EER diagram to make sure you’re properly organizing every relationship.

Both diagrams make designing your database easier than ever. All you need is a great diagramming tool to give you the templates, shapes, and notations you need to create your ER and EER diagrams in a flash.

CLOUD-BASED, COLLABORATIVE DIAGRAMMING

Join the 2,500,000 users who choose Cacoo

Learn More