Data Model
Data Model
Topperworld.in
Data Model
⚫ 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:
• 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.
©Topperworld
DBMS
©Topperworld
DBMS
• 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.
⚫ A schema contains schema objects like table, foreign key, primary key,
views, columns, data types, stored procedure, etc.
©Topperworld
DBMS
A schema diagram can display only some aspects of a schema like the name of
record type, data type, and constraints. Other aspects can't be specified through
the schema diagram. For example, the given figure neither show the data type
of each data item nor the relationship among various files.
In the database, actual data changes quite frequently. For example, in the given
figure, the database changes whenever we add a new grade or add a student.
The data at a particular moment of time is called the instance of the database.
©Topperworld
DBMS
1. Hierarchical Model
• The hierarchical Model is one of the oldest models in the data model
which was developed by IBM, in the 1950s.
• In this, the data is organized into a tree-like structure where each record
consists of one parent record and many children.
2. Network Model
• The Network Model was formalized by the Database Task group in the
1960s.
• This model can consist of multiple parent segments and these segments
are grouped as levels but there exists a logical association between the
segments belonging to any level. Mostly, there exists a many-to-many
logical association between any of the two segments.
©Topperworld
DBMS
• This data model has one drawback it cannot store a large amount of data
that is the tables can not be of large size.
• The Context data model is simply a data model which consists of more
than one data model.
• This model allows users to do more than one thing which each individual
data model can do.
• Some entities may have extra attributes and some entities may have
some missing attributes.
©Topperworld
DBMS
©Topperworld