SlideShare a Scribd company logo
2
Most read
7
Most read
10
Most read
Dr. Amiya Ranjan Panda
Assistant Professor [II]
School of Computer Engineering,
Kalinga Institute of Industrial Technology (KIIT),
Deemed to be University,Odisha
Database Management Systems (CS 2004)
KALINGA INSTITUTE OF INDUSTRIAL
TECHNOLOGY
School Of Computer
Engineering
4 Credit Lecture Note 02
Ø Data model is a collection of conceptual tools for describing data, data
relationships, data semantics and consistency constraints. That means a data
model provides a way to describe the design of a database.
ü It is relatively simple representation, usually graphical, of complex real-
world data structures.
ü Data modeling is considered as the most important part of the database
design process.
2
Data Model
ü Entity: An entity can be a real-world object, either animate or inanimate,
that can be easily identifiable. For example, in a school database, students,
teachers, classes, and courses offered can be considered as entities. All
these entities have some attributes or properties that give them their identity.
ü Entity Set: An entity set is a collection of similar types of entities. An
entity set may contain entities with attribute sharing similar values. For
example, a Students set may contain all the students of a school; likewise a
Teachers set may contain all the teachers of a school from all faculties.
ü Attribute: Entities are represented by means of their properties,
called attributes. All attributes have values. For example, a student entity
may have name, class, and age as attributes.
ü Constraints: A constraint is a restriction placed on the data. Constraints are
important because they help to ensure data integrity
3
Data Model Basic Building Blocks
ü Relationship :The association among entities is called a relationship. For example,
an employee works_at a department, a student enrolls in a course. Here, Works_at
and Enrolls are called relationships.
4
4
Data Model Basic Building Blocks...
• One-to-One (1:1) Relationship:
• One-to-Many (1:M) Relationship:
• Many-to-Many (M:N) Relationship:
ü This database model organizes data into a tree-like-structure, with a single root,
to which all the other data is linked. The hierarchy starts from the Root data, and
expands like a tree, adding child nodes to the parent nodes.
ü In this model, a child node will only have a single parent node.
ü This model efficiently describes many real-world relationships like index of a
book, recipes etc.
ü In hierarchical model, data is organized into tree-like structure with one one-to-
many relationship between two different types of data, for example, one
department can have many courses, many professors and of-course many
students.
ü The hierarchical model was developed in the 1960s to manage large amount of
data for complex manufacturing projects
5
5
Hierarchical Model
Ø Advantages:
ü Efficient storage for data that have a clear hierarchy
ü Parent/child relationship promotes conceptual simplicity & data
integrity
ü It is efficient with 1:M relationships
ü It promotes data sharing
Ø Disadvantages:
ü It is complex to implement
ü It is difficult to manage
ü There are implementation limitations, that means it can’t represent
M:N relationships
ü There is no DDL and DML
ü There is lack of standards
6
Hierarchical Model…
ü This is an extension of the Hierarchical model.
ü In this model data is organized more like a graph, and are allowed to have more
than one parent node.
ü In this database model data is more related as more relationships are established
in this database model. Also, as the data is more related, hence accessing the
data is also easier and fast.
ü This database model was used to map many-to-many data relationships.
ü This was the most widely used database model, before Relational Model was
introduced
7
Network Model
Ø Advantages:
ü It represents complex data relationships better than hierarchical models
ü It handles more relationship types, such as M: N and multi-parent
ü Data access is more flexible than hierarchical model
ü Improved database performance
ü It includes DDL and DML
Ø Disadvantages:
ü System complexity limits efficiency
ü Navigational system yields complex implementation and 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
8
Network Model….
ü In this model, data is organised in two-dimensional tables and the
relationship is maintained by storing a common field.
ü This model was introduced by E.F Codd in 1970, and since then it has been
the most widely used database model, infact, we can say the only database
model used around the world.
ü The basic structure of data in the relational model is tables. All the
information related to a particular type is stored in rows of that table.
ü Hence, tables are also known as relations in relational model.
ü Domain: It contains a set of atomic values that an attribute can take.
ü Attribute: It contains the name of a column in a particular table. Each
attribute Ai must have a domain, dom(Ai)
ü Relational instance: In the relational database system, the relational
instance is represented by a finite set of tuples. Relation instances do not
have duplicate tuples.
9
Relational Model
10
Relational Model
ü Relational schema: A relational schema contains the name of the relation and name
of all columns or attributes.
ü Relational key: In the relational key, each row has one or more attributes. It can
identify the row in the relation uniquely
Ø Advantages:
ü Changes in a table’s structure do not affect data access or application
programs
ü Tabular view substantially improves conceptual simplicity, thereby
promoting easier database design, implementation, management and
use
ü Have referential integrity controls ensure data consistency
ü RDBMS isolates the end-users from physical level details and
improves implementation and management simplicity
Ø 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
11
Relational Model
ü ER model stands for an Entity-Relationship model. It is a high-level data
model. This model is used to define the data elements and relationship for a
specified system.
ü It develops a conceptual design for the database. It also develops a very
simple and easy to design view of data.
ü In ER modeling, the database structure is portrayed as a diagram called an
entity-relationship diagram.
ü Peter Chen first introduced the ER data model in 1976; it was the
graphical representation of entities and their relationships in a database
structure that quickly became popular.
12
Entity-Relationship(ER) Model
Ø Advantages:
ü Visual modeling yields exceptional conceptual simplicity
ü Visual representation makes it an effective communication tool
ü It is integrated with dominant relational model
Ø Disadvantages:
ü There is limited constraint representation
ü There is limited relationship representation
ü There is no DML
ü Loss of information content when attributes are removed from entities
to avoid crowded displays
13
Entity-Relationship(ER) Model
ü In object-oriented data model, both data and their relationships are
contained in a single structure called an object.
ü Like the relational model’s entity, an object is described by its factual
content. But quite unlike an entity, an object includes information about
relationships between the facts within the object, as well as information
about its relationships with other.
ü Attributes describe the properties of an object. Objects that share similar
characteristics are grouped in classes. Thus, a class is a collection of similar
objects with shared structure (attributes) and methods
14
Object-Oriented(OO) Model
Ø Advantages:
ü Semantic content is added
ü Support for complex objects
ü Visual representation includes semantic content
ü Inheritance promotes data integrity
Ø Disadvantages:
ü It is a complex navigational system
ü High system overheads slow transactions
ü Slow development of standards caused vendors to supply their own
enhancements, thus eliminating a widely accepted standard.
15
Object-Oriented(OO) Model
ü The object-oriented data model is somewhat spherical in nature, allowing
access to unique elements anywhere within a database structure, with
extremely high performance. But, it performs extremely poorly when
retrieving more than a single data item.
ü The relational data model is best suited for retrieval of groups of data, but
can also be used to access unique data items fairly efficiently
ü Thus, by combining the features of relational data model and object-
oriented data model, object-relational data model was created.
16
Object-Relational(OR) Model
ü The semi-structured data model permits the specification of data where
individual data items of the same type may have different sets of attributes.
The XML (Extensible Markup Language) is widely used to represent semi-
structured data. It supports unstructured data.
17
Semi-structured Model
18

More Related Content

PDF
Autonomous Data Warehouse
PPTX
Ibm db2
PDF
Database Lecture Notes
PPT
Lecture2 oracle ppt
PPTX
Type of database models
PDF
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
PPT
Data models
PPTX
Data Dictionary
Autonomous Data Warehouse
Ibm db2
Database Lecture Notes
Lecture2 oracle ppt
Type of database models
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
Data models
Data Dictionary

What's hot (20)

PPT
Data dictionary
PPT
Dbms relational model
PPTX
Entity Relationship Diagram
PPT
Dbms ii mca-ch8-db design-2013
PPTX
Fundamentals of Database system - Databases and Database Users
PPTX
Database administrator
PPTX
Architecture of dbms(lecture 3)
PPT
Database concepts
PPTX
Erd examples
PPT
Different data models
PPTX
Oracle EBS R12.2 - Deployment and System Administration
PPTX
Database basics
PPT
Advanced sql
PPT
Cloud Computing Integration Introduction
PPTX
NOSQL Databases types and Uses
PPT
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
PPTX
Entity Relationship Diagrams
PPT
Database systems
PDF
Data models
PPTX
Oracle Database Introduction
Data dictionary
Dbms relational model
Entity Relationship Diagram
Dbms ii mca-ch8-db design-2013
Fundamentals of Database system - Databases and Database Users
Database administrator
Architecture of dbms(lecture 3)
Database concepts
Erd examples
Different data models
Oracle EBS R12.2 - Deployment and System Administration
Database basics
Advanced sql
Cloud Computing Integration Introduction
NOSQL Databases types and Uses
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Entity Relationship Diagrams
Database systems
Data models
Oracle Database Introduction
Ad

Similar to Dbms 2: Data Model (20)

PPTX
DBMS-2.pptx
PPTX
DBMS-7.pptx
PPTX
DATA MODEL Power point presentation for dbms
PPTX
Data Modeling and Data Models and its Importance
PPTX
Database System Concepts AND architecture [Autosaved].pptx
PPTX
Chapter-2 Database System Concepts and Architecture
PPTX
RDBMS stands for Relational Database Management System
PDF
Chapter – 2 Data Models.pdf
PPTX
Database Management System(UNIT 1)
PPTX
Database Management System(UNIT 1)
PPTX
data-models .pptx
DOCX
What is the difference between Data and Information give an exa
PDF
Data Models & Introduction to UML
PDF
ITB - UNIT 3.pdf
PPTX
DBMS OF DATA MODEL Deepika 2
PPT
DBMS topic in PU
PDF
database1.pdf
PDF
DATABASE MANAGEMENT SYSTEM
PDF
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
DBMS-2.pptx
DBMS-7.pptx
DATA MODEL Power point presentation for dbms
Data Modeling and Data Models and its Importance
Database System Concepts AND architecture [Autosaved].pptx
Chapter-2 Database System Concepts and Architecture
RDBMS stands for Relational Database Management System
Chapter – 2 Data Models.pdf
Database Management System(UNIT 1)
Database Management System(UNIT 1)
data-models .pptx
What is the difference between Data and Information give an exa
Data Models & Introduction to UML
ITB - UNIT 3.pdf
DBMS OF DATA MODEL Deepika 2
DBMS topic in PU
database1.pdf
DATABASE MANAGEMENT SYSTEM
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
Ad

More from Amiya9439793168 (11)

PDF
Dbms 14: Relational Calculus
PDF
Dbms 13: Query Using Relational Algebra
PDF
Dbms 12: Join
PDF
Dbms 11: Relational Algebra
PDF
Dbms 10: Conversion of ER model to Relational Model
PDF
Dbms 9: Relational Model
PDF
Dbms 8: Enhanced ER Model
PDF
Dbms 6: ER Modeling
PDF
Dbms 3: 3 Schema Architecture
PDF
Introduction to Database Management System
PDF
Dbms 7: ER Diagram Design Issue
Dbms 14: Relational Calculus
Dbms 13: Query Using Relational Algebra
Dbms 12: Join
Dbms 11: Relational Algebra
Dbms 10: Conversion of ER model to Relational Model
Dbms 9: Relational Model
Dbms 8: Enhanced ER Model
Dbms 6: ER Modeling
Dbms 3: 3 Schema Architecture
Introduction to Database Management System
Dbms 7: ER Diagram Design Issue

Recently uploaded (20)

PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Geodesy 1.pptx...............................................
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
DOCX
573137875-Attendance-Management-System-original
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Digital Logic Computer Design lecture notes
PPT
Mechanical Engineering MATERIALS Selection
PDF
composite construction of structures.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Project quality management in manufacturing
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Geodesy 1.pptx...............................................
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Foundation to blockchain - A guide to Blockchain Tech
573137875-Attendance-Management-System-original
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Embodied AI: Ushering in the Next Era of Intelligent Systems
Digital Logic Computer Design lecture notes
Mechanical Engineering MATERIALS Selection
composite construction of structures.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Lecture Notes Electrical Wiring System Components
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Project quality management in manufacturing
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Construction Project Organization Group 2.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
bas. eng. economics group 4 presentation 1.pptx

Dbms 2: Data Model

  • 1. Dr. Amiya Ranjan Panda Assistant Professor [II] School of Computer Engineering, Kalinga Institute of Industrial Technology (KIIT), Deemed to be University,Odisha Database Management Systems (CS 2004) KALINGA INSTITUTE OF INDUSTRIAL TECHNOLOGY School Of Computer Engineering 4 Credit Lecture Note 02
  • 2. Ø Data model is a collection of conceptual tools for describing data, data relationships, data semantics and consistency constraints. That means a data model provides a way to describe the design of a database. ü It is relatively simple representation, usually graphical, of complex real- world data structures. ü Data modeling is considered as the most important part of the database design process. 2 Data Model
  • 3. ü Entity: An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. For example, in a school database, students, teachers, classes, and courses offered can be considered as entities. All these entities have some attributes or properties that give them their identity. ü Entity Set: An entity set is a collection of similar types of entities. An entity set may contain entities with attribute sharing similar values. For example, a Students set may contain all the students of a school; likewise a Teachers set may contain all the teachers of a school from all faculties. ü Attribute: Entities are represented by means of their properties, called attributes. All attributes have values. For example, a student entity may have name, class, and age as attributes. ü Constraints: A constraint is a restriction placed on the data. Constraints are important because they help to ensure data integrity 3 Data Model Basic Building Blocks
  • 4. ü Relationship :The association among entities is called a relationship. For example, an employee works_at a department, a student enrolls in a course. Here, Works_at and Enrolls are called relationships. 4 4 Data Model Basic Building Blocks... • One-to-One (1:1) Relationship: • One-to-Many (1:M) Relationship: • Many-to-Many (M:N) Relationship:
  • 5. ü This database model organizes data into a tree-like-structure, with a single root, to which all the other data is linked. The hierarchy starts from the Root data, and expands like a tree, adding child nodes to the parent nodes. ü In this model, a child node will only have a single parent node. ü This model efficiently describes many real-world relationships like index of a book, recipes etc. ü In hierarchical model, data is organized into tree-like structure with one one-to- many relationship between two different types of data, for example, one department can have many courses, many professors and of-course many students. ü The hierarchical model was developed in the 1960s to manage large amount of data for complex manufacturing projects 5 5 Hierarchical Model
  • 6. Ø Advantages: ü Efficient storage for data that have a clear hierarchy ü Parent/child relationship promotes conceptual simplicity & data integrity ü It is efficient with 1:M relationships ü It promotes data sharing Ø Disadvantages: ü It is complex to implement ü It is difficult to manage ü There are implementation limitations, that means it can’t represent M:N relationships ü There is no DDL and DML ü There is lack of standards 6 Hierarchical Model…
  • 7. ü This is an extension of the Hierarchical model. ü In this model data is organized more like a graph, and are allowed to have more than one parent node. ü In this database model data is more related as more relationships are established in this database model. Also, as the data is more related, hence accessing the data is also easier and fast. ü This database model was used to map many-to-many data relationships. ü This was the most widely used database model, before Relational Model was introduced 7 Network Model
  • 8. Ø Advantages: ü It represents complex data relationships better than hierarchical models ü It handles more relationship types, such as M: N and multi-parent ü Data access is more flexible than hierarchical model ü Improved database performance ü It includes DDL and DML Ø Disadvantages: ü System complexity limits efficiency ü Navigational system yields complex implementation and 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 8 Network Model….
  • 9. ü In this model, data is organised in two-dimensional tables and the relationship is maintained by storing a common field. ü This model was introduced by E.F Codd in 1970, and since then it has been the most widely used database model, infact, we can say the only database model used around the world. ü The basic structure of data in the relational model is tables. All the information related to a particular type is stored in rows of that table. ü Hence, tables are also known as relations in relational model. ü Domain: It contains a set of atomic values that an attribute can take. ü Attribute: It contains the name of a column in a particular table. Each attribute Ai must have a domain, dom(Ai) ü Relational instance: In the relational database system, the relational instance is represented by a finite set of tuples. Relation instances do not have duplicate tuples. 9 Relational Model
  • 10. 10 Relational Model ü Relational schema: A relational schema contains the name of the relation and name of all columns or attributes. ü Relational key: In the relational key, each row has one or more attributes. It can identify the row in the relation uniquely
  • 11. Ø Advantages: ü Changes in a table’s structure do not affect data access or application programs ü Tabular view substantially improves conceptual simplicity, thereby promoting easier database design, implementation, management and use ü Have referential integrity controls ensure data consistency ü RDBMS isolates the end-users from physical level details and improves implementation and management simplicity Ø 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 11 Relational Model
  • 12. ü ER model stands for an Entity-Relationship model. It is a high-level data model. This model is used to define the data elements and relationship for a specified system. ü It develops a conceptual design for the database. It also develops a very simple and easy to design view of data. ü In ER modeling, the database structure is portrayed as a diagram called an entity-relationship diagram. ü Peter Chen first introduced the ER data model in 1976; it was the graphical representation of entities and their relationships in a database structure that quickly became popular. 12 Entity-Relationship(ER) Model
  • 13. Ø Advantages: ü Visual modeling yields exceptional conceptual simplicity ü Visual representation makes it an effective communication tool ü It is integrated with dominant relational model Ø Disadvantages: ü There is limited constraint representation ü There is limited relationship representation ü There is no DML ü Loss of information content when attributes are removed from entities to avoid crowded displays 13 Entity-Relationship(ER) Model
  • 14. ü In object-oriented data model, both data and their relationships are contained in a single structure called an object. ü Like the relational model’s entity, an object is described by its factual content. But quite unlike an entity, an object includes information about relationships between the facts within the object, as well as information about its relationships with other. ü Attributes describe the properties of an object. Objects that share similar characteristics are grouped in classes. Thus, a class is a collection of similar objects with shared structure (attributes) and methods 14 Object-Oriented(OO) Model
  • 15. Ø Advantages: ü Semantic content is added ü Support for complex objects ü Visual representation includes semantic content ü Inheritance promotes data integrity Ø Disadvantages: ü It is a complex navigational system ü High system overheads slow transactions ü Slow development of standards caused vendors to supply their own enhancements, thus eliminating a widely accepted standard. 15 Object-Oriented(OO) Model
  • 16. ü The object-oriented data model is somewhat spherical in nature, allowing access to unique elements anywhere within a database structure, with extremely high performance. But, it performs extremely poorly when retrieving more than a single data item. ü The relational data model is best suited for retrieval of groups of data, but can also be used to access unique data items fairly efficiently ü Thus, by combining the features of relational data model and object- oriented data model, object-relational data model was created. 16 Object-Relational(OR) Model
  • 17. ü The semi-structured data model permits the specification of data where individual data items of the same type may have different sets of attributes. The XML (Extensible Markup Language) is widely used to represent semi- structured data. It supports unstructured data. 17 Semi-structured Model
  • 18. 18