Learning Objectives:
- Understand the main types of data models: hierarchical, network, and relational.
- Explain factors affecting the choice of a data model (access efficiency, storage efficiency, complexity).
- Describe the benefits and drawbacks of each data model.
- Recognise how data models are represented visually (diagrams, tables, arrows).
Data Models
Types of Data Models
- Hierarchical – Tree structure (one parent → multiple children)
- Example: Company database: Department → Employees → Employee details
- Network – Web structure (items can have multiple parents and children)
- Example: Airline booking system: Flights ↔ Passengers ↔ Seats
- Relational – Tables with rows and columns, linked by keys
- Example: Library: Books table ↔ Members table (who borrowed which book)
Factors Affecting Selection of Data Models
- Efficiency of accessing data – How fast you can find a record
- Efficiency of data storage – How much space is used
- Complexity of implementation – How hard it is to set up and maintain
Benefits & Drawbacks
- Hierarchical
- Pros: Fast for parent-child lookups; easy to visualise
- Cons: Hard to restructure; limited relationships
- Network
- Pros: Flexible relationships; models complex data
- Cons: More complex to implement
- Relational
- Pros: Easy to query with SQL; widely used
- Cons: Can become slow with large datasets
Representing Data Models
- Hierarchical: Blocks + arrows (parent → child)
- Network: Blocks + arrows (items with multiple connections)
- Relational: Tables with rows & columns; label keys for relationships
Visual Representation
Quick check · 8 questions
+10 XP each