Entity (Conceptual Modelling)

Context: FIT2094_MOC · a real-world object data is collected about · drawn as a Crow’s Foot box · strong (independent) vs weak (identity-dependent)

Quick Revision

  • 🎯 Objective: a real-world object data is collected about ➔ a keyed Crow’s Foot box.
  • 📦 Core Components: name / attributes / key column ➔ strong vs weak.
  • ⚡ Key Constraint: weak entity needs a parent’s key in its own key + an identifying relationship.

📝 Core

1. The Entity

  • Definition ➔ a real-world object/concept data is collected about (CUSTOMER, ORDER).
  • Crow’s Foot box ➔ three partitions: name, attributes, key label.
  • Needs a key ➔ uniquely identifies each instance.

2. Strong vs Weak

  • Strong ➔ own unique key, exists independently (STUDENT/student_id).
  • Weak ➔ can’t be identified alone; key includes a strong entity’s key (DEPENDENT re-uses emp_no).
  • Crow’s Foot weak ➔ composite key with parent’s key + identifying relationship (solid line).

3. Multivalued Attribute

  • No symbol ➔ Crow’s Foot has none, so a multivalued attribute (car_color) becomes its own weak entity.

Key identities:

⚖️ Core Decision Matrix

PropertyStrongWeak
identityself-containedborrows parent’s key
keyowncomposite incl. parent PK
relationshipanyidentifying (solid)
exampleEMPLOYEEDEPENDENT

When It Flips: weak ⟹ identifying relationship — the two ideas always travel together. The identity test decides: if the entity's own attributes uniquely identify it, it is strong; if it must borrow a parent's key, it is weak.

📊 Exam Execution Trace

Manual Execution Trace

Deciding CLASS strong/weak:

Step / StateCheckResult
0 (Init)
1is class_no unique alone?no (restarts per prof)
2needs prof_id?yes
3verdictCLASS weak, PROFESSOR strong

⚠️ Common Mistakes

  • 💡 class_no restarts per professor ➔ not unique alone, so CLASS’s key needs prof_id too — the identity test that makes it weak; a surrogate key would resolve it but is banned conceptually.

🧠 Active Recall