Skip to content

ER model(entity relationship model)

Symbols to be used

Entity — Rectangle
- What: A real-world thing or object class (table candidate).
- Notation: Rectangle with entity name inside.
- College example: Student, Faculty, Staff, Course, Department.
- Notes: Instances = rows/tuples.

Attribute — Oval (Ellipse)
- What: Property of an entity.
- Notation: Single oval connected to its entity.
- College example: Student → Name, DOB, Email.

Composite Attribute — Oval with sub-ovals
- What: Attribute that breaks into subparts.
- Notation: Parent oval connected to child ovals.
- College example: Address → Street, City, PIN.

Multivalued Attribute — Double oval
- What: Attribute that can have multiple values for one entity.
- Notation: Double-lined oval.
- College example: Student → PhoneNumbers (student may have several).

Derived Attribute — Dashed oval
- What: Computable attribute, not stored physically.
- Notation: Oval with dashed outline.
- College example: Age derived from DOB.

Relationship — Diamond
- What: Association between entities.
- Notation: Diamond connecting participating entities; name inside.
- College example: ENROLLED_IN between Student and Course, TEACHES between Faculty and Course.

Total vs Partial Participation — Double line vs Single line
- What: Double line = total (every entity instance must participate); single = optional/partial.
- College example: If every Course must belong to a Department → total participation of Course in offered_by relationship (double line).

Key (Primary Key) — Underlined attribute
- What: Attribute(s) uniquely identifying an entity instance.
- Notation: Underline the attribute name or mark PK.
- College example: StudentID (PK), CourseCode (PK).

ER digram