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 / State | Conceptual | Logical |
|---|---|---|
| 0 (Init) | β | β |
| 1 | CUSTOMER entity | CUSTOMER relation, PK custno |
| 2 | places | ORDERS.custno FK |
| 3 | ORDERβPRODUCT M:N | ORDER_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
How are entities, keys, and relationships mapped to a relational logical model?
- Hint: Relation / PK / FK.
Answer
- Short answer: Entity β relation; key attr β Primary Key; relationship β Foreign Key (parent PK in child).
- Why: Schema β .
Why must a many-to-many relationship be resolved logically, and how?
- Hint: No relational M:N.
Answer
- Short answer: Convert to two 1:M via a bridge whose PK is the composite of both parentsβ keys + an FK to each.
- Why: Kept conceptually β M:N is simpler on the conceptual model, resolved only for the relational target.