Database Management System 2: Data Model
Database Management System 2: Data Model
Chittaranjan Pradhan
System 2
Blocks
Hierarchical Model
Network Model
Entity-
Relationship(ER)
Model
Object-Oriented(OO)
Model
Object-Relational(OR)
Model
Semi-structured Model
Chittaranjan Pradhan
School of Computer Engineering,
KIIT University
2.1
Data Model
Data Model
Chittaranjan Pradhan
Data Model
Data Model Basic Building
Blocks
Hierarchical Model
Data Model Network Model
Object-Oriented(OO)
describe the design of a database Model
Object-Relational(OR)
Model
• It is relatively simple representation, usually graphical, of Semi-structured Model
complex real-world data structures
• Data modeling is considered as the most important part of
the database design process
2.2
Data Model
Data Model Basic Building Blocks
Chittaranjan Pradhan
Entity-
Relationship(ER)
Entity Set Model
Object-Oriented(OO)
Set of entities of the same type that share the same properties Model
Semi-structured Model
Attribute
An attribute is a characteristic of an entity
Constraints
A constraint is a restriction placed on the data. Constraints are
important because they help to ensure data integrity
2.3
Data Model
Data Model Basic Building Blocks...
Chittaranjan Pradhan
Relationship
A relationship describes an association among entities. Data Model
Data Model Basic Building
Different types of relationship are: Blocks
Hierarchical Model
Relational Model
Entity-
Relationship(ER)
Model
Object-Oriented(OO)
Model
Object-Relational(OR)
• One-to-Many (1:M) Relationship: Model
Semi-structured Model
2.4
Data Model
Hierarchical Model
Chittaranjan Pradhan
Object-Relational(OR)
Model
Semi-structured Model
2.5
Data Model
Hierarchical Model...
Chittaranjan Pradhan
Data Model
Data Model Basic Building
Blocks
• Efficient storage for data that have a clear hierarchy Network Model
2.6
Data Model
Network Model
Chittaranjan Pradhan
Hierarchical Model
relationships more effectively than the hierarchical model, to
Network Model
improve database performance, and to impose a database Relational Model
standard. A user perceives the network model as a collection Entity-
of records in 1:M relationships Relationship(ER)
Model
Object-Oriented(OO)
Model
Object-Relational(OR)
Model
Semi-structured Model
2.7
Data Model
Network Model...
Chittaranjan Pradhan
• Advantages:
Data Model
• It represents complex data relationships better than Data Model Basic Building
Blocks
hierarchical models Hierarchical Model
• It handles more relationship types, such as M: N and
Network Model
multi-parent Relational Model
• Data access is more flexible than hierarchical model Entity-
• Improved database performance Relationship(ER)
Model
• It includes DDL and DML
Object-Oriented(OO)
Model
• Disadvantages:
Object-Relational(OR)
• System complexity limits efficiency Model
management
• Structural changes require changes in all application
programs
• Database contains a complex array of pointers that thread
through a set of records
• Put heavy pressure on programmers due the complex
structure
• Networks can become chaotic unless planned carefully
2.8
Data Model
Relational Model
Chittaranjan Pradhan
Relational Model
Entity-
The most important advantage of the RDBMS is its ability to Relationship(ER)
Model
hide the complexities of the relational model from the user.
Object-Oriented(OO)
Another reason for the relational data model’s rise to Model
2.9
Data Model
Relational Model...
Chittaranjan Pradhan
Data Model
Data Model Basic Building
• Advantages: Blocks
Network Model
application programs
Relational Model
• Tabular view substantially improves conceptual simplicity,
Entity-
thereby promoting easier database design, implementation, Relationship(ER)
management and use Model
Semi-structured Model
• Disadvantages:
• Conceptual simplicity gives relatively untrained people the
tools to use a good system poorly
• It may promote islands of information problems as
individuals and departments can easily develop their own
applications
2.10
Data Model
Entity-Relationship(ER) Model
Chittaranjan Pradhan
Data Model
Entity-Relationship(ER) Model Data Model Basic Building
Blocks
Peter Chen first introduced the ER data model in 1976; it was Hierarchical Model
the graphical representation of entities and their relationships Network Model
in a database structure that quickly became popular. Thus, the Relational Model
Object-Oriented(OO)
Model
ER models are normally represented in an ER diagram Object-Relational(OR)
Model
Semi-structured Model
2.11
Data Model
Entity-Relationship(ER) Model...
Chittaranjan Pradhan
Data Model
Data Model Basic Building
Blocks
Hierarchical Model
• Advantages: Network Model
• Visual modeling yields exceptional conceptual simplicity Relational Model
• Visual representation makes it an effective communication Entity-
Relationship(ER)
tool Model
• It is integrated with dominant relational model Object-Oriented(OO)
Model
• Disadvantages:
Object-Relational(OR)
• There is limited constraint representation Model
Semi-structured Model
• There is limited relationship representation
• There is no DML
• Loss of information content when attributes are removed
from entities to avoid crowded displays
2.12
Data Model
Object-Oriented(OO) Model
Chittaranjan Pradhan
Object-Oriented(OO) Model
In object-oriented data model, both data and their relationships Data Model
Data Model Basic Building
are contained in a single structure called an object. Like the Blocks
Network Model
content. But quite unlike an entity, an object includes
Relational Model
information about relationships between the facts within the
Entity-
object, as well as information about its relationships with other Relationship(ER)
Model
Object-Oriented(OO)
Attributes describe the properties of an object. Objects that Model
2.13
Data Model
Object-Oriented(OO) Model...
Chittaranjan Pradhan
Data Model
Data Model Basic Building
Blocks
Hierarchical Model
• Advantages: Network Model
• Semantic content is added Relational Model
2.14
Data Model
Object-Relational(OR) Model
Chittaranjan Pradhan
Object-Relational(OR) Model
The object-oriented data model is somewhat spherical in Data Model
Data Model Basic Building
nature, allowing access to unique elements anywhere within a Blocks
Network Model
performs extremely poorly when retrieving more than a single
Relational Model
data item
Entity-
The relational data model is best suited for retrieval of groups Relationship(ER)
Model
of data, but can also be used to access unique data items fairly Object-Oriented(OO)
efficiently Model
Object-Relational(OR)
Model
Thus, by combining the features of relational data model and Semi-structured Model
2.15
Data Model
Semi-structured Model
Chittaranjan Pradhan
Data Model
Data Model Basic Building
Blocks
Hierarchical Model
Network Model
Relational Model
Semi-structured Model Entity-
Relationship(ER)
The semi-structured data model permits the specification of Model
data where individual data items of the same type may have Object-Oriented(OO)
Model
different sets of attributes. The XML (Extensible Markup Object-Relational(OR)
Language) is widely used to represent semi-structured data. It Model
Semi-structured Model
supports unstructured data
2.16