SlideShare ist ein Scribd-Unternehmen logo
1 von 18
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

Weitere ähnliche Inhalte

Ähnlich wie 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.pptxnirajsharmapuneiat
 
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 Modelingoudesign
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptxRuksanKarki
 
Database overview
Database overviewDatabase overview
Database overviewSayem Khan
 
DBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxDBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxAmitSingh770691
 
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 SystemsOmprakash Chauhan
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.pptIpsitaSaha9
 
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].pdfMisganawAbeje1
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxKavya990096
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML نبيله نواز
 
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.pdfuvuguvuvugycycyctcucuvyvvuvuvyvk5985399
 

Ähnlich wie 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
 

Kürzlich hochgeladen

4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 

Kürzlich hochgeladen (20)

4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 

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