Difference Between Hierarchical and Network Database Model in SQL



Hierarchical Data Model

In the Hierarchical data model, the relationship between the table and data is defined in parent-child structure. In this structure, data is arranged in the form of a tree structure. This model supports one-to-one and one-to-many relationships.

Network Model

The Network model arranges data in a graph structure. In this model, each parent can have multiple children, and children can also have multiple parents. This model supports many-to-many relationships as well.

Comparison Table

Sr. No. Key Hierarchical Data Model Network Data Model
1 Basic Relationship between records is of the parent-child type Relationships between records are expressed in the form of pointers or links.
2 Data Inconsistency It can have data inconsistency during the updation and deletion of the data No data inconsistency
3 Traversing Traversing of data is complex Data traversing is easy because nodes can be accessed from parent to child or child to parent
4 Relationship It does not support many-to-many relationships It supports many-to-many relationships
5 Structure It creates a tree-like structure It supports a graph-like structure
Updated on: 2024-12-24T17:56:16+05:30

11K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements