Data Models
Data Models
Data Model is the modeling of the data description, data semantics, and consistency constraints of the
data. It provides the conceptual tools for describing the design of a database at each level of data
abstraction. Therefore, there are following four data models used for understanding the structure of
the database:
1) Relational Data Model: 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. This model was initially described by Edgar F. Codd, in 1969. The relational data model is the widely
used model which is primarily used by commercial data processing applications.
2) Entity-Relationship Data Model: An ER model is the logical representation of data as objects and
relationships among them. These objects are known as entities, and relationship is an association among these
entities. This model was designed by Peter Chen and published in 1976 papers. It was widely used in database
designing. A set of attributes describe the entities. For example, student_name, student_id describes the 'student'
entity. A set of the same type of entities is known as an 'Entity set', and the set of the same type of relationships
is known as 'relationship set'.
3) Object-based Data Model: An extension of the ER model with notions of functions, encapsulation, and
object identity, as well. This model supports a rich type system that includes structured and collection types.
Thus, in 1980s, various database systems following the object-oriented approach were developed. Here, the
objects are nothing but the data carrying its properties.
4) Semistructured Data Model: This type of data model is different from the other three data models
(explained above). The semistructured data model allows the data specifications at places where the
individual data items of the same type may have different attributes sets. The Extensible Markup
Language, also known as XML, is widely used for representing the semistructured data. Although
XML was initially designed for including the markup information to the text document, it gains
importance because of its application in the exchange of data.
In the above figure, Electronics is the root node which has two children i.e.
Televisions and Portable Electronics. These two has further children for which
they act as parent. For example: Television has children as Tube, LCD and
Plasma, for these three Television act as parent. It follows one to many
relationship.
Advantages of the Hierarchical Data Model
Because of its tree form, it is easy to grasp.
Retrieving data in a one-to-many connection is efficient.
Disadvantages of the Hierarchical Data Model
Inflexibility in reorganizing data.
accessing complicated data structures may be challenging.
redundant data storage, which might cause anomalies and inconsistencies.
What is a Network Data Model?
It is the advance version of the hierarchical data model. To organize data it uses
directed graphs instead of the tree-structure. In this child can have more than
one parent. It uses the concept of the two data structures i.e. Records and
Sets.
In the above figure, Project is the root node which has two children i.e. Project 1
and Project 2. Project 1 has 3 children and Project 2 has 2 children. Total there
are 5 children i.e Department A, Department B and Department C, they are
network related children as we said that this model can have more than one
parent. So, for the Department B and Department C have two parents i.e.
Project 1 and Project 2.
Advantages of the Network Data Model
Because of its numerous parent ties, it is more adaptable than the
hierarchical approach.
Ideal for managing intricate, many-to-many connections.
Disadvantages of the Network Data Model
Increased complexity in database design and management.
requires complex programming in order to manage and work with data.
The logical
Pointers are used to
A linked list is used to representation is used
establish relationships
establish a relationship with rows and columns
among records
among records physically. to depict relationship
physically.
among records.
Deletion anomaly
exists in this model i.e. There is no deletion There is no deletion
it is difficult to delete anomaly. anomaly.
the parent node.
Difficult to design a
It is easy to
database and manipulate
Difficult to design a comprehend due to
a database because of its
database because of concealed physical
complexity. Hence, it
its complexity. level details from end-
imposes a burden on the
users.
programmer.
It is flexible as
It is flexible as compared
It is less flexible. compared to the
to the hierarchical model.
hierarchical model.
VAX-DBMS, DMS-1100 of
It is mostly used in real
&XML and XAML use UNIVAC and
world applications.
this model. SUPRADBMS’s use this
Oracle, SQL.
model.