Database Models in DBMS: Hierarchical, Network, and Relational Models
- Siddharth Sharma
- Mar 7, 2025
- 3 min read
Database models define the logical structure and organization of data in a database management system (DBMS). They provide a framework for how data is stored, accessed, and managed. Three prominent database models are the Hierarchical Model, Network Model, and Relational Model. Each has its own strengths and weaknesses, and they have evolved over time to meet different data management needs.
1. Hierarchical Model
The hierarchical model is one of the earliest database models, organized in a tree-like structure. It represents data in a parent-child relationship, where each parent can have multiple children, but each child has only one parent.
Key Features:
Tree Structure: Data is organized in a hierarchy, resembling an inverted tree.
Parent-Child Relationship: Each record (except the root) has a single parent.
One-to-Many Relationship: A parent can have multiple children, but a child can have only one parent.
Pointers: Uses pointers to link parent and child records.
Advantages:
Simple and easy to understand.
Efficient for data with a clear hierarchical relationship (e.g., organizational charts, file systems).
Fast data retrieval for hierarchical queries.
Disadvantages:
Rigid structure: Limited flexibility in representing complex relationships.
Difficult to manage many-to-many relationships.
Data redundancy and inconsistency can occur.
Example:
A company's organizational structure:

HR Model
2. Network Model
The network model is an extension of the hierarchical model, designed to address its limitations. It allows more complex relationships by supporting many-to-many relationships between records.
Key Features:
Graph Structure: Data is organized as a graph, with records connected via links.
Many-to-Many Relationships: A child can have multiple parents, and a parent can have multiple children.
Pointers: Uses pointers to establish relationships between records.
Sets: Relationships are defined using "owner-member" sets.
Advantages:
More flexible than the hierarchical model.
Supports complex relationships.
Reduces data redundancy.
Disadvantages:
Complex to design and implement.
Harder to understand and maintain.
Requires knowledge of the database structure for querying.
Example:
A university database:
Student A ──── enrolled in ──── Course X
Student B ──── enrolled in ──── Course X
Student A ──── enrolled in ──── Course Y
3. Relational Model
The relational model, introduced by E.F. Codd in 1970, is the most widely used database model today. It organizes data into tables (relations) consisting of rows (tuples) and columns (attributes).
Key Features:
Tables (Relations): Data is stored in tables with rows and columns.
Primary and Foreign Keys: Relationships between tables are established using keys.
Normalization: Reduces redundancy and improves data integrity.
SQL (Structured Query Language): Used for querying and managing data.
Advantages:
Simple and intuitive structure.
Supports complex queries and relationships.
High flexibility and scalability.
Ensures data integrity through constraints and normalization.
Disadvantages:
Can be slower for very large datasets or complex queries.
Requires careful design to avoid performance issues.
Example:
A simple relational database for a library:

Table Data Modeling
Comparison of the Three Models
Feature | Hierarchical Model | Network Model | Relational Model |
Structure | Tree-like | Graph-like | Table-like |
Relationships | One-to-Many | Many-to-Many | Many-to-Many |
Flexibility | Low | Moderate | High |
Complexity | Simple | Complex | Moderate |
Data Redundancy | High | Moderate | Low |
Querying | Limited | Complex | Easy (using SQL) |
Use Case | Hierarchical data | Complex relationships | General-purpose |
Conclusion
The hierarchical model is suitable for data with a clear hierarchical structure but lacks flexibility.
The network model addresses some limitations of the hierarchical model but is complex to implement.
The relational model is the most versatile and widely used, offering simplicity, flexibility, and powerful querying capabilities.
Each model has its place in the evolution of database systems, with the relational model being the foundation for modern DBMS like MySQL, PostgreSQL, and Oracle.




Comments