Summary of the Notations Used in ER Diagram , Naming Conventions and Design Issues

 

ER Diagrams, Naming Conventions, and Design Issues 

 ER Diagram Notation (Overview)

ER diagrams focus on schemas (structure) rather than instances (data) because schemas are stable and easier to represent.

Core ER Notation- Refer Fig 3.14

ConceptRepresentation
Strong entity    Rectangle
Weak entity    Double rectangle
Relationship    Diamond
Identifying relationship    Double diamond
Attribute    Oval
Composite attribute    Oval with component ovals
Multivalued attribute    Double oval
Derived attribute    Dotted oval
Key attribute    Underlined
Partial key (weak entity)    Dashed underline

Structural Constraints

  • Cardinality ratio: 1:1, 1:N, M:N (shown as 1, M, N on edges)

  • Participation:

    • Total participation → Double line

    • Partial participation → Single line

Roles

  • Role names are shown when the same entity type participates more than once in a relationship (e.g., SUPERVISION).

📌 ER notation is not unique—many alternative notations exist.


Proper Naming of Schema Constructs

Good naming improves clarity and correctness.

Naming Conventions

  • Entity types & relationship types → UPPERCASE

  • Attributes → Capitalized

  • Role names → lowercase

  • Entity names → Singular (e.g., EMPLOYEE, not EMPLOYEES)

Guidelines from Requirements Narrative

  • Nouns → Entity types

  • Verbs → Relationship types

  • Descriptive nouns → Attributes

Relationship Naming

  • Binary relationships should read naturally top-to-bottom or left-to-right

  • Example:

    • DEPENDENTS_OF (bottom-to-top)

    • Can be renamed as HAS_DEPENDENTS for readability

📌 Any binary relationship can be described from either direction, so names must be chosen carefully.


Design Choices in ER Conceptual Design

Deciding whether a concept is an entity, attribute, or relationship is often non-trivial.

General Principle

ER design is an iterative refinement process.

Common Refinements

1. Attribute → Relationship

  • When an attribute refers to another entity type

  • Example: Department attribute → WORKS_FOR relationship

  • Remove the attribute after refinement to avoid redundancy

2. Attribute → Entity Type

  • When the same attribute appears in multiple entity types

  • Example: Department in STUDENT, INSTRUCTOR, COURSE

  • Create a separate DEPARTMENT entity

3. Entity Type → Attribute

  • If an entity:

    • Has only one attribute

    • Participates in only one relationship

  • Example: DEPARTMENT → attribute of STUDENT

4. Relationship Degree Refinements

  • Decisions on binary vs ternary relationships (discussed later)

  • Further refinements include specialization/generalization (discussed later)


Key Takeaways

✔ ER diagrams represent schemas, not data instances
✔ Clear notation captures structure and constraints
✔ Proper naming improves readability and semantics
✔ ER design is iterative and flexible
✔ Attributes, entities, and relationships can be refined as understanding improves


A frequent conceptual question:

When should an attribute be modeled as an entity type?

Answer:

When it has its own properties, participates in multiple relationships, or is shared across several entity types.


Comments

Popular posts from this blog

Database Management Systems DBMS PCCST402 Semester 4 KTU CS 2024 Scheme

Database Management Systems DBMS PCCST402 Scheme and Syllabus

Introduction to Database Management System -DBMS