
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 |
Advertisements