DBMS Slide 2 Data Models PPT
DBMS Slide 2 Data Models PPT
MANAGEMENT
SYSTEMS
Data Models
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Data model basic building blocks
Entity
An entity is anything about which data are to be collected and stored. An
entity represents a particular type of object in the real world.
Attribute
An attribute is a characteristic of an entity.
Data Models
Constraints
A constraint is a restriction placed on the data. Constraints are important
because they help to ensure data integrity.
Data Models
Many to Many (M:N) relationship:
The hierarchical model classifies the data into a tree-like structure with a
single parent or root for each record. Sibling records are arranged in a
certain sequence. This is the physical order in which the database is stored.
This model is useful for explaining a wide range of real-world interactions.
Data Models
node needs to have two parent node then that can't be
represented using this model.
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
Data Models
of it.
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
• Easy Conversion to any Model : This model maps well to the relational model
and can be easily converted relational model by converting the ER model to the
table. This model can also be converted to any other model like network model,
hierarchical model etc.
Data Models
an ER model. So one developer might use notations which are not understood
by other developers.
The most common model is the Relational Model. The data in this model is
kept in the form of a two-dimensional table. All data is saved in the form of
rows and columns. Tables are the foundation of a relational paradigm. In the
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
Data Models
the user this model requires more powerful hardware computers and data
storage devices.
• Bad Design: As the relational model is very easy to design and use. So the users
don't need to know how the data is stored in order to access it. This ease of
design can lead to the development of a poor database which would slow down
if the database grows.
• Any object in a hypertext database can link to any other object. It is effective for organizing
a large amount of heterogeneous data, but it is not perfect for numerical analysis.
• Because it integrates but is not limited to tables, the object-oriented database model is the
most well-known post-relational database paradigm. These types of models are often
known as hybrid database models.
Data Models
OODs are most often used with object-oriented programming languages like Java, Kotlin, C#, Node JS (React), and Swift.
Data Models
• Object databases are not widely adopted.
As the name implies, it is a hybrid of the relational and object-oriented models. This
paradigm was created to bridge the gap between the object-oriented and relational
models. We can have many sophisticated features, such as the ability to create
complicated data types based on our needs utilising current data types. The issue with
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
OO vs OR Data Model
Data Models
• Less efficient. • Improvement and comparatively more
efficient.
• The data management language is
typically incorporated into a • There are data manipulation languages
programming language such as #C++. such as SQL, QUEL and QBE which are
based on relational calculus.
In this paradigm, we can't tell the difference between data and schema. Web-
based data sources, for example, when we cannot distinguish between the
website's structure and data. Some entities in this model may be missing
A few examples of semi-structured data sources are emails, XML and other
markup languages, binary executables, TCP/IP packets, zipped files, data
integrated from different sources, and web pages.
Data Models
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University