SlideShare 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 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

Similar to DBMS-2.pptx

Unit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptxUnit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptx
nirajsharmapuneiat
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
DBMS OF DATA MODEL Deepika 2
DBMS OF DATA MODEL  Deepika 2DBMS OF DATA MODEL  Deepika 2
DBMS OF DATA MODEL Deepika 2
Rai Saheb Bhanwar Singh College Nasrullaganj
 
ITB - UNIT 3.pdf
ITB - UNIT 3.pdfITB - UNIT 3.pdf
ITB - UNIT 3.pdf
SOMASUNDARAM T
 
Data models
Data modelsData models
Data models
Samuel Igbanogu
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
RuksanKarki
 
Database overview
Database overviewDatabase overview
Database overview
Sayem Khan
 
DBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxDBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptx
AmitSingh770691
 
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
Omprakash Chauhan
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.ppt
IpsitaSaha9
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
MisganawAbeje1
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
Acharya Institute of Graduate Studies
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
Kavya990096
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
نبيله نواز
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
Eerla Rajasekhar
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
SURBHI SAROHA
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
vk5985399
 
Dbms database models
Dbms database modelsDbms database models
Dbms database models
sanjeev kumar suman
 

Similar to DBMS-2.pptx (20)

Unit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptxUnit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptx
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
 
DBMS OF DATA MODEL Deepika 2
DBMS OF DATA MODEL  Deepika 2DBMS OF DATA MODEL  Deepika 2
DBMS OF DATA MODEL Deepika 2
 
ITB - UNIT 3.pdf
ITB - UNIT 3.pdfITB - UNIT 3.pdf
ITB - UNIT 3.pdf
 
DBMS
DBMSDBMS
DBMS
 
Data models
Data modelsData models
Data models
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
 
Database overview
Database overviewDatabase overview
Database overview
 
DBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxDBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptx
 
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
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.ppt
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
 
Dbms database models
Dbms database modelsDbms database models
Dbms database models
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 

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 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