Data Model
Data Model
Data modeling is the process of organizing your data into a structure, to make it more accessible and
useful. you’re deciding how the data will move in and out of your database and mapping the data so
that it remains clean and consistent.
Hierarchical
Network
Relational
Hierarchical :
the first implementation of hierarchical data model was developed by IBM called as IMS(information
management system).
It was developed for apollo space program to manage the vast amount of data associated with
manufacturing and project management in the late 1960s.
In a hierarchical model, data are viewed as a collection of tables. In this, the data is organized into a
tree-like structure where each record consists of one parent record and many children.
The parent record, called a “root node,” with multiple “child nodes” connecting to it through links.
Characteristic :
1. Tree Structure:
2. Parent-Child Relationship:
– Each node (record) has a parent node and can have multiple
child nodes, but each child node has only one parent.
3. One-to-Many Relationships:
4. Predefined Paths:
Advantages
1. Simplicity:
tree-like structure.
2. Efficiency in Retrieval:
3. Data Integrity:
Network:
The network data model is an extension of the hierarchical data model, designed to address some of
its limitations.
Developed in the 1960s, it organizes data using a graph structure, allowing more complex
relationships between records.
This model is the generalization of the hierarchical model. This model can consist of multiple parent
segments. Mostly, there exists a many-to-many logical association between any of the two
segments.
Codasyl developed in late 1960s and published in 1971, provided the first formal description of the
network model.
Relational:
The relational data model is a foundational concept in modern database management systems.
This type of model designs the data in the form of rows and columns within a table. Thus, a relational
model uses tables for representing data and in-between relationships. Tables are also called
relations.
The relational data model is the widely used model which is primarily used by commercial data
processing applications.
This model emphasizes data independence, consistency, and a high- level query language, making it
highly flexible and widely adopted.