Standard Symbols of ER-Diagram

 

Entity-Relationship (ER) diagrams use standard symbols to represent entities, attributes, relationships, and other components within a database schema. These symbols help in visually modeling the structure of a database system. Here are some of the standard symbols commonly used in ER diagrams:

  1. Entity: Represented as a rectangle, an entity in an ER diagram depicts a real-world object or concept, such as a person, place, or thing. The entity's name is placed inside the rectangle.

  2. Attribute: Shown as an oval or ellipse connected to its corresponding entity, an attribute defines a property or characteristic of an entity. The attribute name is written inside the oval.

  3. Primary Key Attribute: To indicate the primary key attribute within an entity, an underline is typically used beneath the attribute name.

  4. Multivalued Attribute: A double oval or ellipse represents a multivalued attribute, which can hold multiple values for an entity.

  5. Derived Attribute: A dashed oval or ellipse denotes a derived attribute, one whose value can be computed from other attributes.

  6. Weak Entity: Weak entities are entities that do not have a primary key attribute of their own. They are typically represented as a double rectangle.

  7. Relationship: A diamond shape signifies a relationship between entities. The relationship name is written inside the diamond. Lines connecting entities to the diamond represent participation in the relationship.

  8. Cardinality Notation: Cardinality notation is used to represent the minimum and maximum number of instances in a relationship. For example, "1" and "M" can indicate a one-to-many relationship.

  9. Attribute in a Relationship: An attribute associated with a relationship is shown as an oval connected to the relationship line.

  10. Weak Entity Connected by Double Lines: To depict a weak entity's participation in an identifying relationship, double lines are used.

  11. Total Participation: Total participation in a relationship is indicated by double lines connecting an entity to the relationship.

  12. Crows Foot Notation: In some ER diagrams, crows foot notation is used to represent the cardinality of relationships. A crow's foot, or three lines at the end of a line connecting an entity to a relationship, can indicate many instances.

  13. Subtype/Supertype Relationship: When modeling a supertype/subtype relationship, you can use a triangle to denote the supertype and a line connecting it to the subtype entities.

These standard symbols, when used in conjunction with lines and labels, provide a clear and concise representation of the database schema, making it easier to understand and communicate the database structure to stakeholders.


To Download Slides of the lecture in PDF Format, please visit the following link: DBMS PDF Notes

Post a Comment

Previous Post Next Post