Relationship (Conceptual Modelling)

Context: FIT2094_MOC · a logical association between entities · classified by degree (unary/binary/ternary) · labelled with a verb

Quick Revision

  • 🎯 Objective: a logical association between entities âž” the only way entities connect on a conceptual model.
  • 📦 Core Components: degree unary/binary/ternary âž” verb label âž” min/max cardinalities.
  • ⚡ Key Constraint: ternary resolved by a composite entity; two entities may share multiple distinct relationships.

📝 Core

1. The Relationship

  • Definition âž” a logical association (“a customer places many orders”).
  • Only connector âž” the sole way entities connect on a Conceptual Model.
  • Degree âž” number of entities involved.

2. Degree

  • Unary (recursive) âž” entity with itself (EMPLOYEE manages EMPLOYEE).
  • Binary âž” two entities (most common; CUSTOMER places ORDER).
  • Ternary+ âž” >2 entities âž” resolved by a composite entity (PRESCRIPTION).

3. Multiplicity of Relationships

  • Multiple links âž” two entities can share more than one relationship, modelled separately.
  • Example âž” EMPLOYEE member of TEAM and leader of TEAM = two lines.
  • Label direction âž” name in the 1:M direction (places, has).

⚙️ Core Implementation

🔹 Binary relationship

⚖️ Core Decision Matrix

DegreeEntitiesResolution
unary1 (recursive)self-referencing FK
binary2direct line
ternary+≥3composite entity
M:N binary2Associative Entity (if attributes)

When It Flips: M:N is kept on the conceptual model (simpler/desirable) and resolved into an Associative Entity only when attributes must be stored or at the logical stage. A relationship here is the ER counterpart of a Binary Relation.

📊 Exam Execution Trace

Manual Execution Trace

Classifying by degree:

Step / StateRelationshipDegreeNote
0 (Init)———
1EMPLOYEE manages EMPLOYEEunaryrecursive
2CUSTOMER places ORDERbinarycommon
3doctor–drug–patientternary→ PRESCRIPTION

Applied Exercise

Problem: EMPLOYEE is a member and a leader of a TEAM. Model it; may a derivable relationship be added? Derivation Proof / Hand-Calculation Walkthrough:

Final Extracted Output: two labelled relationships; no redundant/derivable relationship added.

đź§  Active Recall