Conceptual vs Logical Model

Context: FIT2094_MOC Β· maps a Conceptual Model to a relational schema Β· entity β†’ relation, with Primary and Foreign keys Β· M:N must be resolved

Quick Revision

  • 🎯 Objective: refine a conceptual model for a chosen DB type (relational) βž” entity β†’ relation, relationship β†’ FK.
  • πŸ“¦ Core Components: entity β†’ relation βž” key attr β†’ PK | relationship β†’ FK.
  • ⚑ Key Constraint: M:N cannot exist relationally β€” resolve into two 1:M via a bridge.

πŸ“ Core

1. The Mapping

  • Entity β†’ relation βž” each entity becomes a table.
  • Key attr β†’ Primary Key βž” marked P, underlined.
  • Relationship β†’ Foreign Key βž” parent’s PK copied into child, marked F/starred.

2. Resolving M:N

  • Cannot implement βž” relational DBs have no M:N construct.
  • Two 1:M βž” insert a bridging Associative Entity with composite PK + two FKs.

3. Detail Level

  • Conceptual βž” high-level meaning; logical βž” implementation-ready, one DB type (still vendor-free).
  • Reserved words βž” rename clashes (ORDERβ†’ORDERS).

Key identities:

When It Flips: a relationship (an association conceptually) becomes a concrete column (the FK, the parent's PK in the child) logically. Surrogate keys, banned conceptually, may be introduced from the logical model onward. The relations produced are n-ary relations.

πŸ“Š Exam Execution Trace

Manual Execution Trace

Mapping CUSTOMER places ORDER (M:N ORDER–PRODUCT):

Step / StateConceptualLogical
0 (Init)β€”β€”
1CUSTOMER entityCUSTOMER relation, PK custno
2placesORDERS.custno FK
3ORDER–PRODUCT M:NORDER_PRODUCT bridge

⚠️ Common Mistakes

  • πŸ’‘ M:N must be resolved logically even without attributes βž” a relational DB can’t implement M:N, so ORDER–PRODUCT becomes a composite-PK bridge with two FKs.

🧠 Active Recall