際際滷

際際滷Share a Scribd company logo
Dr. Pradeep Kumar Mallick
Associate 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 cant 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 tables 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 models 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

Similar to DBMS-2.pptx (20)

PPTX
Database Management System(UNIT 1)
Dr. SURBHI SAROHA
PPTX
Database Management System(UNIT 1)
Dr. SURBHI SAROHA
PPTX
DBMS OF DATA MODEL Deepika 2
Rai Saheb Bhanwar Singh College Nasrullaganj
PPT
DBMS topic in PU
Eerla Rajasekhar
DOCX
What is the difference between Data and Information give an exa
victorring
PPTX
RDBMS stands for Relational Database Management System
AnilNaik42
PPTX
data-models .pptx
iamayesha2526
PDF
ITB - UNIT 3.pdf
SOMASUNDARAM T
PPT
Unit 1
Rakesh Kumar
PDF
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
vk5985399
PDF
Data Models & Introduction to UML
惡 悋慍
PPT
data modeling and models
sabah N
PPTX
DBMS-Unit-1.pptx
Bhavya304221
PDF
DATABASE MANAGEMENT SYSTEM
Acharya Institute of Graduate Studies
PDF
database1.pdf
prashanna13
PPT
Database Technology Teaching Material For Learn
hermawatyrahma21
PPTX
Data Models in Database Managment System
tehzeebwzr
PPTX
Database Introduction to Data Models.pptx
ssuser19199c
PDF
Database System and Data Models - DBMS - MU
Surabhi Gosavi
Database Management System(UNIT 1)
Dr. SURBHI SAROHA
Database Management System(UNIT 1)
Dr. SURBHI SAROHA
DBMS OF DATA MODEL Deepika 2
Rai Saheb Bhanwar Singh College Nasrullaganj
DBMS topic in PU
Eerla Rajasekhar
What is the difference between Data and Information give an exa
victorring
RDBMS stands for Relational Database Management System
AnilNaik42
data-models .pptx
iamayesha2526
ITB - UNIT 3.pdf
SOMASUNDARAM T
Unit 1
Rakesh Kumar
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
vk5985399
Data Models & Introduction to UML
惡 悋慍
data modeling and models
sabah N
DBMS-Unit-1.pptx
Bhavya304221
DATABASE MANAGEMENT SYSTEM
Acharya Institute of Graduate Studies
database1.pdf
prashanna13
Database Technology Teaching Material For Learn
hermawatyrahma21
Data Models in Database Managment System
tehzeebwzr
Database Introduction to Data Models.pptx
ssuser19199c
Database System and Data Models - DBMS - MU
Surabhi Gosavi

Recently uploaded (20)

PPTX
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
PPTX
Exploring Linear and Angular Quantities and Ergonomic Design.pptx
AngeliqueTolentinoDe
PDF
I3PM Case study smart parking 2025 with uptoIP速 and ABP
MIPLM
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
PPTX
Different types of inheritance in odoo 18
Celine George
PDF
Our Guide to the July 2025 USPS速 Rate Change
Postal Advocate Inc.
DOCX
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
PDF
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
PDF
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
PDF
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
PDF
Introduction presentation of the patentbutler tool
MIPLM
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
Exploring Linear and Angular Quantities and Ergonomic Design.pptx
AngeliqueTolentinoDe
I3PM Case study smart parking 2025 with uptoIP速 and ABP
MIPLM
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
Different types of inheritance in odoo 18
Celine George
Our Guide to the July 2025 USPS速 Rate Change
Postal Advocate Inc.
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
Introduction presentation of the patentbutler tool
MIPLM
Introduction to Indian Writing in English
Trushali Dodiya
Ad

DBMS-2.pptx

  • 1. Dr. Pradeep Kumar Mallick Associate 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 cant 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 tables 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 models 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