SlideShare a Scribd company logo
1 of 37
Download to read offline
UNIT 1
Lecture 4
Data Models
Dinesh Kumar Bhawnani, BIT DURG
Data Models
•A data model is collection of tools for
describing
a)data
b)data relationships
c)data semantics
d)data constraints
Dinesh Kumar Bhawnani, BIT DURG
Types of Data Models
•There are basically two types of data models
a)Record based Data Models.
b)Object based Data Models.
Dinesh Kumar Bhawnani, BIT DURG
Record based Data Models
Dinesh Kumar Bhawnani, BIT DURG
• In Record-based models, the database is organized in
fixed-format records of several types.
• A fixed number of fields, or attributes, are defined in
each record type, and each field is usually of a fixed
length.
• The three most popular record-based data models are
1. Hierarchical Data Model
2. Network Data Model
3. Relational Data Model
Hierarchical Data Model
• In the hierarchical model, data are represented by collections of
records.
• Relationships among data are represented by links.
• In this model Tree data structure is used.
• There are two concepts associated with the hierarchical model –
segment types and parent-child relationships.
• Segment type is similar to the record types in the network models.
• The information retrieved only by navigating from the root segment
type to the nodes segment types. Thus you can access a segment
type only via its parent segment type in the parent-child relationship.
Dinesh Kumar Bhawnani, BIT DURG
Hierarchical Data Model
Dinesh Kumar Bhawnani, BIT DURG
Hierarchical Data Model
Dinesh Kumar Bhawnani, BIT DURG
Advantages of Hierarchical Data Model
1. Simplicity
2. Data Security
3. Data Integrity
4. Efficiency
Dinesh Kumar Bhawnani, BIT DURG
Disadvantages of Hierarchical Data Model
1. Implementation Complexity
2. Database management problems
3. Lack of structural independence
4. Programming complexity
5. Implementation limitation
Dinesh Kumar Bhawnani, BIT DURG
Network Data Model
1. The Database Task Group of the conference on Data
System Languages (DBTG/ CODASYL) formalized the
network data model in the late 1960s.
2. The network data model is similar to a hierarchical
model except that a record can have multiple
parents.
3. The network data model has three basic
components such as record type, data items (or
fields) and links.
Dinesh Kumar Bhawnani, BIT DURG
Network Data Model
1. In network model, a relationship is called a set in which
each set is composed of at least two record types.
1. Owner record that is equivalent to the parent in the hierarchical
model.
2. Member record that is equivalent to child in the hierarchical
model.
2. The connection between an owner and its member records
is identified by a link to which database designers assign a
set-name.
3. This set-name is used to retrieve and manipulate data.
Dinesh Kumar Bhawnani, BIT DURG
Network Data Model
Dinesh Kumar Bhawnani, BIT DURG
Network Data Model
1. In the network model, data are represented by
collections of records.
2. Relationships among data are represented by
links.
3. In this model Graph data structure is used.
4. A network model permits a record to have
more than one parent.
Dinesh Kumar Bhawnani, BIT DURG
Network Data Model
Dinesh Kumar Bhawnani, BIT DURG
Advantages of Network Data Model
1. Simplicity
2. Ability to handle more relationship types
3. Ease of data access
4. Data Integrity
5. Data Independence
6. Database Standards
Dinesh Kumar Bhawnani, BIT DURG
Disadvantages of Network Data Model
1. System Complexity
2. Lack of structural independence
Dinesh Kumar Bhawnani, BIT DURG
Relational Data Model
1. The relational model was discovered by Dr. E. F.
Codd.
2. The relational model uses tables to represent the
data and the relationships among those data.
3. Each table has multiple columns, and each column is
identified by a unique name.
4. It is a low level model.
Dinesh Kumar Bhawnani, BIT DURG
Relational Data Model
Dinesh Kumar Bhawnani, BIT DURG
Advantages of Relational Data Model
1. Structural Independence
2. Simplicity
3. Ease of designing, implementation, maintenance, and usage
4. Adhoc query capability
Dinesh Kumar Bhawnani, BIT DURG
Disadvantages of Relational Data Model
1. Hardware Overheads
2. Ease of design can result in bad design
Dinesh Kumar Bhawnani, BIT DURG
Difference between hierarchical, network and
relational data models
SNO Hierarchical Network Relational
1 Relationship between records is
of parent child type.
Relationship between records is
expressed in the form of
pointers or links.
Relationship between record is
represented by a relation that
contains a key for each record
involved in the relations.
2 Many-to-many relationship
cannot be expressed in this
model.
Many-to-many relationship can
also be implemented.
Many-to-many relationship can
be easily implemented.
3 It is a simple, straightforward
and natural method of
implementing record
relationships.
Record relationship
implementation is quite
complex due to the use of
pointers.
Relationship implementation is
very easy though the use of a
key or composite key field(s).
Dinesh Kumar Bhawnani, BIT DURG
Difference between hierarchical, network and
relational data models
SNO Hierarchical Network Relational
4 This type of model is useful only
when there is some hierarchical
character in the database.
Network model is useful for
representing such records which
have many-to-many
relationships.
Relational model is useful for
representing most of the real
world objects and relationships
among them.
5 In order to represent links
among records, pointers are
used. Thus relationships among
records are physical.
In Network model also the
relationship among records are
physical.
Relational model does not
maintain physical connection
among records. Data is
organized logically in the form
of rows and columns and stored
in table.
Dinesh Kumar Bhawnani, BIT DURG
Difference between hierarchical, network and
relational data models
SNO Hierarchical Network Relational
6 Searching for a record is very
difficult since one can retrieve a
child only after going though its
parent record.
Searching a record is easy since
there are multiple access paths
to a data element.
A unique, indexed key field is
used to search for a data
element.
7 During updation or deletion
process, chance of data
inconsistency is involved.
No problem of inconsistency
exists in network model because
a data element is physically
located at just one place.
Data integrity maintaining
methods like Normalization
process, etc. are adopted for
consistency.
Dinesh Kumar Bhawnani, BIT DURG
Object Based Data Models
•In Object-based models, the database is organized in
real world objects of several types. A number of
fields, or attributes, are defined in each object type,
and each field is usually of a variable length.
•The two most popular object-based data models are
a) E R Model (Entity Relationship Model)
b) Object oriented model
Dinesh Kumar Bhawnani, BIT DURG
ER Model (Entity Relationship Model)
• The entity-relationship model is based on a perception of the world
as consisting of a collection of basic objects (entities) and
relationships among these objects.
• It was discovered by Peter Chen in 1976.
• It is a high-level data model.
• An entity is a distinguishable object that exists.
• Each entity has associated with it a set of attributes describing it.
• A relationship is an association among several entities.
Dinesh Kumar Bhawnani, BIT DURG
ER Model (Entity Relationship Model)
• The set of all entities or relationships of the same type is called the
entity set or relationship set.
• Another essential element is the E-R diagram in which the mapping
cardinalities express the number of entities to which another entity
can be associated via a relationship set.
• The overall logical structure of a database can be expressed
graphically by an E-R diagram:
a) Rectangles : represent entity sets.
b) Ellipses : represent attributes.
c) Diamonds : represent relationships among entity sets.
d) Lines : link attributes to entity sets and entity sets to relationships.
Dinesh Kumar Bhawnani, BIT DURG
ER Model (Entity Relationship Model)
Dinesh Kumar Bhawnani, BIT DURG
Advantages of ER Model
1. Straightforward relational representation
2. Easy conversion for ER to other data model
3. Graphical representation for better understanding
Dinesh Kumar Bhawnani, BIT DURG
Disadvantages of ER Model
1. No industry standard for notation
2. Popular for high-level design
Dinesh Kumar Bhawnani, BIT DURG
Object Oriented Data Model
• The object-oriented model is based on a collection of objects, like the E-R
model.
• An object contains values stored in instance variables within the object.
• Unlike the record-oriented models, these values are themselves objects.
• Thus objects contain objects to an arbitrarily deep level of nesting.
• An object also contains bodies of code that operate on the object. These
bodies of code are called methods.
• Objects that contain the same types of values and the same methods are
grouped into classes.
Dinesh Kumar Bhawnani, BIT DURG
Object Oriented Data Model
• A class may be viewed as a type definition for objects.
• The only way in which one object can access the data of another object is
by invoking the method of that other object. This is called sending a
message to the object.
• Internal parts of the object, the instance variables and method code, are
not visible externally.
• Result is two levels of data abstraction.
• Unlike entities in the E-R model, each object has its own unique identity,
independent of the values it contains:
1. Two objects containing the same values are distinct.
2. Distinction is maintained in physical level by assigning distinct object identifiers.
Dinesh Kumar Bhawnani, BIT DURG
Object Oriented Data Model
Dinesh Kumar Bhawnani, BIT DURG
Object Oriented Data Model
Dinesh Kumar Bhawnani, BIT DURG
Advantages of OO Model
1. Capable of handling a large variety of data types.
2. Combining object-oriented programming with
database technology
3. Improved productivity
4. Improved data access
Dinesh Kumar Bhawnani, BIT DURG
Disadvantages of OO Model
1. No precise definition
2. Difficult to maintain
3. Not suited for all applications
Dinesh Kumar Bhawnani, BIT DURG
University Questions
• What are data models?
• Describe different types of data models.
• Enumerate the different types of data models existing for structured
data storage.
• What are the various types of data model? Explain in brief.
• What is the difference between hierarchical, network and relational
data model?
Dinesh Kumar Bhawnani, BIT DURG
For Video lecture on this topic please subscribe to my youtube channel.
The link for my youtube channel is
https://www.youtube.com/channel/UCRWGtE76JlTp1iim6aOTRuw?sub
_confirmation=1
Dinesh Kumar Bhawnani, BIT DURG

More Related Content

What's hot

1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 

What's hot (20)

Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Different data models
Different data modelsDifferent data models
Different data models
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Type of Database Management System
Type of Database Management SystemType of Database Management System
Type of Database Management System
 
File organization 1
File organization 1File organization 1
File organization 1
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Data independence
Data independenceData independence
Data independence
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Relational database
Relational database Relational database
Relational database
 
Data Models In Database Management System
Data Models In Database Management SystemData Models In Database Management System
Data Models In Database Management System
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Relational model
Relational modelRelational model
Relational model
 
2 tier and 3 tier architecture
2 tier and 3 tier architecture2 tier and 3 tier architecture
2 tier and 3 tier architecture
 
Advantages of DBMS
Advantages of DBMSAdvantages of DBMS
Advantages of DBMS
 
Data models
Data modelsData models
Data models
 

Similar to Dbms Notes Lecture 4 : Data Models in DBMS

database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
RuksanKarki
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.ppt
rekhasai2468
 
network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...
Nimrakhan89
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docx
orlandov3
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptx
Koteswari Kasireddy
 

Similar to Dbms Notes Lecture 4 : Data Models in DBMS (20)

DBMS OF DATA MODEL Deepika 2
DBMS OF DATA MODEL  Deepika 2DBMS OF DATA MODEL  Deepika 2
DBMS OF DATA MODEL Deepika 2
 
DBMS
DBMSDBMS
DBMS
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.ppt
 
network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...
 
DBMS-2.pptx
DBMS-2.pptxDBMS-2.pptx
DBMS-2.pptx
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
 
Sachin noire 2024
Sachin noire 2024Sachin noire 2024
Sachin noire 2024
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docx
 
E-R Diagram of College Management Systems
E-R Diagram of College Management SystemsE-R Diagram of College Management Systems
E-R Diagram of College Management Systems
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptx
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
All_Data_DBMS_MODELS 130725130028-phpapp01
All_Data_DBMS_MODELS 130725130028-phpapp01All_Data_DBMS_MODELS 130725130028-phpapp01
All_Data_DBMS_MODELS 130725130028-phpapp01
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
DBMS-7.pptx
DBMS-7.pptxDBMS-7.pptx
DBMS-7.pptx
 
Database management system
Database management systemDatabase management system
Database management system
 
Data Modeling Training.pptx
Data Modeling Training.pptxData Modeling Training.pptx
Data Modeling Training.pptx
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbms
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 

More from BIT Durg

More from BIT Durg (8)

Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
Dbms Notes Lecture 8 : E R Diagram question with solutions
Dbms Notes Lecture 8 : E R Diagram question with solutionsDbms Notes Lecture 8 : E R Diagram question with solutions
Dbms Notes Lecture 8 : E R Diagram question with solutions
 
Database management system Lecture 7 : Strong and weak entity sets
Database management system Lecture 7 : Strong and weak entity setsDatabase management system Lecture 7 : Strong and weak entity sets
Database management system Lecture 7 : Strong and weak entity sets
 
Dbms Notes Lecture 6 : E R Model, Relationship, Cardinality Ratio
Dbms Notes Lecture 6 : E R Model, Relationship, Cardinality RatioDbms Notes Lecture 6 : E R Model, Relationship, Cardinality Ratio
Dbms Notes Lecture 6 : E R Model, Relationship, Cardinality Ratio
 
Dbms Notes Lecture 5 : E R Model, Entity
Dbms Notes Lecture 5 : E R Model, EntityDbms Notes Lecture 5 : E R Model, Entity
Dbms Notes Lecture 5 : E R Model, Entity
 
Dbms Notes Lecture 3 : Types of database users
Dbms Notes Lecture 3 : Types of database usersDbms Notes Lecture 3 : Types of database users
Dbms Notes Lecture 3 : Types of database users
 
Dbms Notes Lecture 2 : Levels of Data Abstraction
Dbms Notes Lecture 2 : Levels of Data AbstractionDbms Notes Lecture 2 : Levels of Data Abstraction
Dbms Notes Lecture 2 : Levels of Data Abstraction
 
Dbms Notes Lecture 1 : Drawbacks of File processing system
Dbms Notes Lecture 1 : Drawbacks of File processing systemDbms Notes Lecture 1 : Drawbacks of File processing system
Dbms Notes Lecture 1 : Drawbacks of File processing system
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 

Dbms Notes Lecture 4 : Data Models in DBMS

  • 1. UNIT 1 Lecture 4 Data Models Dinesh Kumar Bhawnani, BIT DURG
  • 2. Data Models •A data model is collection of tools for describing a)data b)data relationships c)data semantics d)data constraints Dinesh Kumar Bhawnani, BIT DURG
  • 3. Types of Data Models •There are basically two types of data models a)Record based Data Models. b)Object based Data Models. Dinesh Kumar Bhawnani, BIT DURG
  • 4. Record based Data Models Dinesh Kumar Bhawnani, BIT DURG • In Record-based models, the database is organized in fixed-format records of several types. • A fixed number of fields, or attributes, are defined in each record type, and each field is usually of a fixed length. • The three most popular record-based data models are 1. Hierarchical Data Model 2. Network Data Model 3. Relational Data Model
  • 5. Hierarchical Data Model • In the hierarchical model, data are represented by collections of records. • Relationships among data are represented by links. • In this model Tree data structure is used. • There are two concepts associated with the hierarchical model – segment types and parent-child relationships. • Segment type is similar to the record types in the network models. • The information retrieved only by navigating from the root segment type to the nodes segment types. Thus you can access a segment type only via its parent segment type in the parent-child relationship. Dinesh Kumar Bhawnani, BIT DURG
  • 6. Hierarchical Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 7. Hierarchical Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 8. Advantages of Hierarchical Data Model 1. Simplicity 2. Data Security 3. Data Integrity 4. Efficiency Dinesh Kumar Bhawnani, BIT DURG
  • 9. Disadvantages of Hierarchical Data Model 1. Implementation Complexity 2. Database management problems 3. Lack of structural independence 4. Programming complexity 5. Implementation limitation Dinesh Kumar Bhawnani, BIT DURG
  • 10. Network Data Model 1. The Database Task Group of the conference on Data System Languages (DBTG/ CODASYL) formalized the network data model in the late 1960s. 2. The network data model is similar to a hierarchical model except that a record can have multiple parents. 3. The network data model has three basic components such as record type, data items (or fields) and links. Dinesh Kumar Bhawnani, BIT DURG
  • 11. Network Data Model 1. In network model, a relationship is called a set in which each set is composed of at least two record types. 1. Owner record that is equivalent to the parent in the hierarchical model. 2. Member record that is equivalent to child in the hierarchical model. 2. The connection between an owner and its member records is identified by a link to which database designers assign a set-name. 3. This set-name is used to retrieve and manipulate data. Dinesh Kumar Bhawnani, BIT DURG
  • 12. Network Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 13. Network Data Model 1. In the network model, data are represented by collections of records. 2. Relationships among data are represented by links. 3. In this model Graph data structure is used. 4. A network model permits a record to have more than one parent. Dinesh Kumar Bhawnani, BIT DURG
  • 14. Network Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 15. Advantages of Network Data Model 1. Simplicity 2. Ability to handle more relationship types 3. Ease of data access 4. Data Integrity 5. Data Independence 6. Database Standards Dinesh Kumar Bhawnani, BIT DURG
  • 16. Disadvantages of Network Data Model 1. System Complexity 2. Lack of structural independence Dinesh Kumar Bhawnani, BIT DURG
  • 17. Relational Data Model 1. The relational model was discovered by Dr. E. F. Codd. 2. The relational model uses tables to represent the data and the relationships among those data. 3. Each table has multiple columns, and each column is identified by a unique name. 4. It is a low level model. Dinesh Kumar Bhawnani, BIT DURG
  • 18. Relational Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 19. Advantages of Relational Data Model 1. Structural Independence 2. Simplicity 3. Ease of designing, implementation, maintenance, and usage 4. Adhoc query capability Dinesh Kumar Bhawnani, BIT DURG
  • 20. Disadvantages of Relational Data Model 1. Hardware Overheads 2. Ease of design can result in bad design Dinesh Kumar Bhawnani, BIT DURG
  • 21. Difference between hierarchical, network and relational data models SNO Hierarchical Network Relational 1 Relationship between records is of parent child type. Relationship between records is expressed in the form of pointers or links. Relationship between record is represented by a relation that contains a key for each record involved in the relations. 2 Many-to-many relationship cannot be expressed in this model. Many-to-many relationship can also be implemented. Many-to-many relationship can be easily implemented. 3 It is a simple, straightforward and natural method of implementing record relationships. Record relationship implementation is quite complex due to the use of pointers. Relationship implementation is very easy though the use of a key or composite key field(s). Dinesh Kumar Bhawnani, BIT DURG
  • 22. Difference between hierarchical, network and relational data models SNO Hierarchical Network Relational 4 This type of model is useful only when there is some hierarchical character in the database. Network model is useful for representing such records which have many-to-many relationships. Relational model is useful for representing most of the real world objects and relationships among them. 5 In order to represent links among records, pointers are used. Thus relationships among records are physical. In Network model also the relationship among records are physical. Relational model does not maintain physical connection among records. Data is organized logically in the form of rows and columns and stored in table. Dinesh Kumar Bhawnani, BIT DURG
  • 23. Difference between hierarchical, network and relational data models SNO Hierarchical Network Relational 6 Searching for a record is very difficult since one can retrieve a child only after going though its parent record. Searching a record is easy since there are multiple access paths to a data element. A unique, indexed key field is used to search for a data element. 7 During updation or deletion process, chance of data inconsistency is involved. No problem of inconsistency exists in network model because a data element is physically located at just one place. Data integrity maintaining methods like Normalization process, etc. are adopted for consistency. Dinesh Kumar Bhawnani, BIT DURG
  • 24. Object Based Data Models •In Object-based models, the database is organized in real world objects of several types. A number of fields, or attributes, are defined in each object type, and each field is usually of a variable length. •The two most popular object-based data models are a) E R Model (Entity Relationship Model) b) Object oriented model Dinesh Kumar Bhawnani, BIT DURG
  • 25. ER Model (Entity Relationship Model) • The entity-relationship model is based on a perception of the world as consisting of a collection of basic objects (entities) and relationships among these objects. • It was discovered by Peter Chen in 1976. • It is a high-level data model. • An entity is a distinguishable object that exists. • Each entity has associated with it a set of attributes describing it. • A relationship is an association among several entities. Dinesh Kumar Bhawnani, BIT DURG
  • 26. ER Model (Entity Relationship Model) • The set of all entities or relationships of the same type is called the entity set or relationship set. • Another essential element is the E-R diagram in which the mapping cardinalities express the number of entities to which another entity can be associated via a relationship set. • The overall logical structure of a database can be expressed graphically by an E-R diagram: a) Rectangles : represent entity sets. b) Ellipses : represent attributes. c) Diamonds : represent relationships among entity sets. d) Lines : link attributes to entity sets and entity sets to relationships. Dinesh Kumar Bhawnani, BIT DURG
  • 27. ER Model (Entity Relationship Model) Dinesh Kumar Bhawnani, BIT DURG
  • 28. Advantages of ER Model 1. Straightforward relational representation 2. Easy conversion for ER to other data model 3. Graphical representation for better understanding Dinesh Kumar Bhawnani, BIT DURG
  • 29. Disadvantages of ER Model 1. No industry standard for notation 2. Popular for high-level design Dinesh Kumar Bhawnani, BIT DURG
  • 30. Object Oriented Data Model • The object-oriented model is based on a collection of objects, like the E-R model. • An object contains values stored in instance variables within the object. • Unlike the record-oriented models, these values are themselves objects. • Thus objects contain objects to an arbitrarily deep level of nesting. • An object also contains bodies of code that operate on the object. These bodies of code are called methods. • Objects that contain the same types of values and the same methods are grouped into classes. Dinesh Kumar Bhawnani, BIT DURG
  • 31. Object Oriented Data Model • A class may be viewed as a type definition for objects. • The only way in which one object can access the data of another object is by invoking the method of that other object. This is called sending a message to the object. • Internal parts of the object, the instance variables and method code, are not visible externally. • Result is two levels of data abstraction. • Unlike entities in the E-R model, each object has its own unique identity, independent of the values it contains: 1. Two objects containing the same values are distinct. 2. Distinction is maintained in physical level by assigning distinct object identifiers. Dinesh Kumar Bhawnani, BIT DURG
  • 32. Object Oriented Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 33. Object Oriented Data Model Dinesh Kumar Bhawnani, BIT DURG
  • 34. Advantages of OO Model 1. Capable of handling a large variety of data types. 2. Combining object-oriented programming with database technology 3. Improved productivity 4. Improved data access Dinesh Kumar Bhawnani, BIT DURG
  • 35. Disadvantages of OO Model 1. No precise definition 2. Difficult to maintain 3. Not suited for all applications Dinesh Kumar Bhawnani, BIT DURG
  • 36. University Questions • What are data models? • Describe different types of data models. • Enumerate the different types of data models existing for structured data storage. • What are the various types of data model? Explain in brief. • What is the difference between hierarchical, network and relational data model? Dinesh Kumar Bhawnani, BIT DURG
  • 37. For Video lecture on this topic please subscribe to my youtube channel. The link for my youtube channel is https://www.youtube.com/channel/UCRWGtE76JlTp1iim6aOTRuw?sub _confirmation=1 Dinesh Kumar Bhawnani, BIT DURG