SlideShare a Scribd company logo
1 of 31
PRESENTATION
ER-DATA MODEL
IN
DBMS
PRESENTATION BY:
-KABINDRA KOIRALA
OBJECTIVES
● Entity Relationship Model
● Entity Relationship Diagram(ERD)
● Extended Features of ERD
1.ENTITY RELATIONSHIP MODEL
● ER Model- Basic Concepts
● Entity
● Attributes and its types
● Entity-set and keys
● Relationship And Mapping Cardinality
ER Model - Basic Concepts
The ER model defines the three most relevant
steps. It works around real-world entities and
the associations among them. At view level, the
ER model is considered a good option for
designing databases.
● Requirement Analysis
● Conceptual Database Design
● Logical Database Design
Requirement Analysis
The very first step in designing a database
application is to understand what data us to be
stored in the database, what applications must
be built on the top of it, and what operations are
we must find out what the users want from the
database.
Conceptual Database Design
The information gathered in the requirements
analysis step is used to develop a high-level
description of the data to be stored in database,
along with the constraints known to hold over
the data.
The ER model is one of the high-level or
semantic, data models used in database.
Logical Database Design
We must choose a DBMS to implement our
database design, and convert the conceptual
database design into a database schema in the
data model of chosen DBMS. Sometimes
conceptual schema is called logical schema in
Relational 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.
● 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. Entity sets need
not be disjoint.
Attributes
● 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.
● There exists a domain or range of values that can be assigned
to attributes. For example, a student's name cannot be a
numeric value. It has to be alphabetic. A student's age cannot
be negative, etc.
Types of Attributes
●
Simple attribute − Simple attributes are atomic values, which cannot be divided further. For
example, a student's phone number is an atomic value of 10 digits.
●
Composite attribute − Composite attributes are made of more than one simple attribute. For
example, a student's complete name may have first_name and last_name.
●
Derived attribute − Derived attributes are the attributes that do not exist in the physical
database, but their values are derived from other attributes present in the database. For
example, average_salary in a department should not be saved directly in the database, instead it
can be derived. For another example, age can be derived from data_of_birth.
●
Single-value attribute − Single-value attributes contain single value. For example −
Social_Security_Number.
●
Multivalued attribute − Multivalued attributes may contain more than one values. For example,
a person can have more than one phone number, email_address, etc.
Entity-Set and Keys
Key is an attribute or collection of attributes that uniquely identifies an entity
among entity set. For example, the roll_number of a student makes him/her
identifiable among students.
There are mainly three types of keys:
● Super Key − A set of attributes (one or more) that collectively identifies an
entity in an entity set.
● Candidate Key − A minimal super key is called a candidate key. An entity set
may have more than one candidate key.
● Primary Key − A primary key is one of the candidate keys chosen by the
database designer to uniquely identify the entity set.
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.
● Relationship Set: A set of relationships of similar type is called a relationship set. Like entities, a
relationship too can have attributes. These attributes are called descriptive attributes.
● Degree of Relationship:The number of participating entities in a relationship defines the degree of
the relationship.
Binary = degree 2
Ternary = degree 3
n-ary = degree
Mapping Cardinalities
Cardinality defines the number of entities in one
entity set, which can be associated with the
number of entities of other set via relationship
set.
Types of Cardinalities
1.One-to-one
One entity from entity set A can be
associated with at most one entity
of entity set B and vice versa.
2.One-to-many
One entity from entity set A can be associated with more
than one entities of entity set B however an entity from
entity set B, can be associated with at most one entity
Types of Cardinalities(cont…..)
● Many to One
More than one entities from entity set A can
be associated with at most one entity of
entity set B, however an entity from entity
set B can be associated with more than one
entity from entity set A.
● Many to Many
One entity from A can be associated
with more than one entity from B
and vice versa.
2.ENTITY RELATIONSHIP DIAGRAM
● Introduction
● Symbols & Notations
● Information Engineering Style Used in ER-
Diagram
Introduction
ER-Diagram is a visual
representation of data
that describes how
data is related to each
other.
SYMBOLS AND NOTATIONS
● Entities: An entity is an object or
concept about which you want to store information.
A weak entity is an entity that must
defined by a foreign key relationship with
another entity as it cannot be uniquely identified by its
own attributes alone.
SYMBOLS AND NOTATIONS(cont….)
● Actions: Actions are represented by
diamond shape, and show how two,
entities share information in the database.
In some cases, entities can be
Self-linked.
For example,employees can supervise other employees
SYMBOLS AND NOTATIONS(cont….)
● Attributes: Attributes are represented
by ovals. A key attribute is the unique, distinguishing
characteristic of the entity.
For example, an employee's social security number might be the employee's key attribute.
A multivalued attribute can have more than one value.
For example, an employee entity can have multiple skill values.
A derived attribute is based on another attribute.
For example, an employee's monthly salary is based on the
employee's annual salary. ATTRIBUTE
ATTRIBUTE
ATTRIBUTE
SYMBOLS AND NOTATIONS(cont….)
● Connecting lines: Solid lines that connect attributes to
show the relationships of entities in the diagram.
● Cardinality: Cardinality specifies how many instances
of an entity relate to one instance of another entity.
Ordinality is also closely linked to cardinality. While
cardinality specifies the occurrences of a relationship,
ordinality describes the relationship as either
mandatory or optional. In other words, cardinality
specifies the maximum number of relationships and
ordinality specifies the absolute minimum number of
relationships.
INFORMATION ENGINEERING STYLE
USED IN ER- DIAGRAM
MEANING
● Zero or More
● One or More
● One and only One
● Zero or One
Relationships (Cardinality and Modality)
SYMBOLS
●
●
●
●
INFORMATION ENGINEERING STYLE
USED IN ER- DIAGRAM(cont...)
MEANING
● A one through many notation on one
side of a relationship and a one and
only one on the other.
● A zero through many notation on one
side of a relationship and a one and
only one on the other.
● A one through many notation on one
side of a relationship and a zero or one
notation on the other.
● A zero through many notation on one
side of a relationship and a zero or one
notation on the other.
Many - to - One
SYMBOLS
●
●
●
●
INFORMATION ENGINEERING STYLE
USED IN ER- DIAGRAM(cont...)
MEANING
● A zero through many on both sides of a
relationship.
● A one through many on both sides of a
relationship.
● A zero through many on one side and a
one through many on the other.
● A one and only one notation on one side
of a relationship and a zero or one on
the other.
● A one and only one notation on both
sides
Many - to - One
SYMBOLS
●
●
●
●
.
3.EXTENDED FEATURES OF ERD
● Introduction
● Generalization
● Specialization
● Inheritance
Introduction
The ER Model has the power of expressing database entities in a conceptual
hierarchical manner. As the hierarchy goes up, it generalizes the view of entities, and
as we go deep in the hierarchy, it gives us the detail of every entity included.
Going up in this structure is called generalization, where entities are clubbed together
to represent a more generalized view. For example, a particular student named
Kabindra can be generalized along with all the students. The entity shall be a student,
and further, the student is a person. The reverse is called specialization where a
person is a student, and that student is Kabindra.
Generalization
In generalization, a number of
entities are brought together into
one generalized entity based on
their similar characteristics. For
example: Kabindra, Mukesh, Gopal,
Shiv Chandra can all be generalized
as member of this Group.
Members of this group
Kabindra
Mukesh Gopal
ShivChandra
Specialization
Specialization is the opposite of generalization. In
specialization, a group of entities is divided into sub-
groups based on their characteristics. Take a group
‘Person’ for example. A person has name, date of
birth, gender, etc. These properties are common in all
persons, human beings. But in a company, persons
can be identified as employee, employer, customer, or
vendor, based on what role they play in the company.
PERSON
TEACHERSTUDENT
IS A
Inheritance
We use all the above features of ER-Model in order to
create classes of objects in object-oriented programming.
The details of entities are generally hidden from the user;
this process known as abstraction.
Inheritance is an important feature of Generalization and
Specialization. It allows lower-level entities to inherit the
attributes of higher-level entities.
For example, the attributes of a Person class such as
name, age, and gender can be inherited by lower-level
entities such as Student or Teacher.
PERSON
TEACHERSTUDENT
IS A
GENDER
AGE
NAME
ROLL NO. ID NO.
Conclusion
So, in this presentation, we studied about Data
Models and its parts, i.e Entity Relationship
Models, Entity Relationship Diagram and its
Extended Features. Beside this, we also learn
about the use of them in database system the
application, which the information technology
field use as one of the major software in
computer field.
THANK YOU
ANY QUERY???

More Related Content

What's hot

Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modelingsontumax
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)Zaheer Soomro
 
Ppt of dbms e r features
Ppt of dbms e r featuresPpt of dbms e r features
Ppt of dbms e r featuresNirali Akabari
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity ConstraintsMegha yadav
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSssuser20b618
 
E-R diagram in Database
E-R diagram in DatabaseE-R diagram in Database
E-R diagram in DatabaseFatiha Qureshi
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model IntroductionNishant Munjal
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Mudasir Qazi
 
Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In SqlAnurag
 

What's hot (20)

Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
 
DBMS Keys
DBMS KeysDBMS Keys
DBMS Keys
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Ppt of dbms e r features
Ppt of dbms e r featuresPpt of dbms e r features
Ppt of dbms e r features
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 
E-R diagram in Database
E-R diagram in DatabaseE-R diagram in Database
E-R diagram in Database
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In Sql
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 

Viewers also liked

6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMSkoolkampus
 
Sql Authorization
Sql AuthorizationSql Authorization
Sql AuthorizationFhuy
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 
Relational keys
Relational keysRelational keys
Relational keysSana2020
 
Slide 5 keys
Slide 5 keysSlide 5 keys
Slide 5 keysVisakh V
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMSkoolkampus
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 

Viewers also liked (11)

6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
 
Sql Authorization
Sql AuthorizationSql Authorization
Sql Authorization
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
Relational keys
Relational keysRelational keys
Relational keys
 
Set operators
Set  operatorsSet  operators
Set operators
 
Slide 5 keys
Slide 5 keysSlide 5 keys
Slide 5 keys
 
View of data DBMS
View of data DBMSView of data DBMS
View of data DBMS
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
RAID
RAIDRAID
RAID
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 

Similar to ER Model in DBMS (20)

Day 1 SQL.pptx
Day 1 SQL.pptxDay 1 SQL.pptx
Day 1 SQL.pptx
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
database
databasedatabase
database
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Entity Relationship Diagram – ER Diagram in DBMS.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptxEntity Relationship Diagram – ER Diagram in DBMS.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx
 
er-models.pptx
er-models.pptxer-models.pptx
er-models.pptx
 
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxDATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
 
ERD(2).ppt
ERD(2).pptERD(2).ppt
ERD(2).ppt
 
Data Models.pptx
Data Models.pptxData Models.pptx
Data Models.pptx
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Unit iv dbms
Unit   iv dbmsUnit   iv dbms
Unit iv dbms
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
ER-Diagram.pptx
ER-Diagram.pptxER-Diagram.pptx
ER-Diagram.pptx
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
 
Er model
Er modelEr model
Er model
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
 
Revision ch 3
Revision ch 3Revision ch 3
Revision ch 3
 
Er model
Er modelEr model
Er model
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 

More from Kabindra Koirala

Ch-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxCh-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxKabindra Koirala
 
3.9 Persian Empire PPT.pdf
3.9 Persian Empire PPT.pdf3.9 Persian Empire PPT.pdf
3.9 Persian Empire PPT.pdfKabindra Koirala
 
Cultural_Awareness_and_communication_INDIA_1.ppt
Cultural_Awareness_and_communication_INDIA_1.pptCultural_Awareness_and_communication_INDIA_1.ppt
Cultural_Awareness_and_communication_INDIA_1.pptKabindra Koirala
 

More from Kabindra Koirala (6)

Ch-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxCh-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptx
 
3.9 Persian Empire PPT.pdf
3.9 Persian Empire PPT.pdf3.9 Persian Empire PPT.pdf
3.9 Persian Empire PPT.pdf
 
Cultural_Awareness_and_communication_INDIA_1.ppt
Cultural_Awareness_and_communication_INDIA_1.pptCultural_Awareness_and_communication_INDIA_1.ppt
Cultural_Awareness_and_communication_INDIA_1.ppt
 
BiLa-Nepal-2014-HST.ppt
BiLa-Nepal-2014-HST.pptBiLa-Nepal-2014-HST.ppt
BiLa-Nepal-2014-HST.ppt
 
Ecommerce.ppt
Ecommerce.pptEcommerce.ppt
Ecommerce.ppt
 
Network-Internet.ppt
Network-Internet.pptNetwork-Internet.ppt
Network-Internet.ppt
 

Recently uploaded

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
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
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
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
 

Recently uploaded (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
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
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
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
 

ER Model in DBMS

  • 2. OBJECTIVES ● Entity Relationship Model ● Entity Relationship Diagram(ERD) ● Extended Features of ERD
  • 3. 1.ENTITY RELATIONSHIP MODEL ● ER Model- Basic Concepts ● Entity ● Attributes and its types ● Entity-set and keys ● Relationship And Mapping Cardinality
  • 4. ER Model - Basic Concepts The ER model defines the three most relevant steps. It works around real-world entities and the associations among them. At view level, the ER model is considered a good option for designing databases. ● Requirement Analysis ● Conceptual Database Design ● Logical Database Design
  • 5. Requirement Analysis The very first step in designing a database application is to understand what data us to be stored in the database, what applications must be built on the top of it, and what operations are we must find out what the users want from the database.
  • 6. Conceptual Database Design The information gathered in the requirements analysis step is used to develop a high-level description of the data to be stored in database, along with the constraints known to hold over the data. The ER model is one of the high-level or semantic, data models used in database.
  • 7. Logical Database Design We must choose a DBMS to implement our database design, and convert the conceptual database design into a database schema in the data model of chosen DBMS. Sometimes conceptual schema is called logical schema in Relational Data Model.
  • 8. 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. ● 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. Entity sets need not be disjoint.
  • 9. Attributes ● 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. ● There exists a domain or range of values that can be assigned to attributes. For example, a student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be negative, etc.
  • 10. Types of Attributes ● Simple attribute − Simple attributes are atomic values, which cannot be divided further. For example, a student's phone number is an atomic value of 10 digits. ● Composite attribute − Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name. ● Derived attribute − Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, average_salary in a department should not be saved directly in the database, instead it can be derived. For another example, age can be derived from data_of_birth. ● Single-value attribute − Single-value attributes contain single value. For example − Social_Security_Number. ● Multivalued attribute − Multivalued attributes may contain more than one values. For example, a person can have more than one phone number, email_address, etc.
  • 11. Entity-Set and Keys Key is an attribute or collection of attributes that uniquely identifies an entity among entity set. For example, the roll_number of a student makes him/her identifiable among students. There are mainly three types of keys: ● Super Key − A set of attributes (one or more) that collectively identifies an entity in an entity set. ● Candidate Key − A minimal super key is called a candidate key. An entity set may have more than one candidate key. ● Primary Key − A primary key is one of the candidate keys chosen by the database designer to uniquely identify the entity set.
  • 12. 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. ● Relationship Set: A set of relationships of similar type is called a relationship set. Like entities, a relationship too can have attributes. These attributes are called descriptive attributes. ● Degree of Relationship:The number of participating entities in a relationship defines the degree of the relationship. Binary = degree 2 Ternary = degree 3 n-ary = degree
  • 13. Mapping Cardinalities Cardinality defines the number of entities in one entity set, which can be associated with the number of entities of other set via relationship set.
  • 14. Types of Cardinalities 1.One-to-one One entity from entity set A can be associated with at most one entity of entity set B and vice versa. 2.One-to-many One entity from entity set A can be associated with more than one entities of entity set B however an entity from entity set B, can be associated with at most one entity
  • 15. Types of Cardinalities(cont…..) ● Many to One More than one entities from entity set A can be associated with at most one entity of entity set B, however an entity from entity set B can be associated with more than one entity from entity set A. ● Many to Many One entity from A can be associated with more than one entity from B and vice versa.
  • 16. 2.ENTITY RELATIONSHIP DIAGRAM ● Introduction ● Symbols & Notations ● Information Engineering Style Used in ER- Diagram
  • 17. Introduction ER-Diagram is a visual representation of data that describes how data is related to each other.
  • 18. SYMBOLS AND NOTATIONS ● Entities: An entity is an object or concept about which you want to store information. A weak entity is an entity that must defined by a foreign key relationship with another entity as it cannot be uniquely identified by its own attributes alone.
  • 19. SYMBOLS AND NOTATIONS(cont….) ● Actions: Actions are represented by diamond shape, and show how two, entities share information in the database. In some cases, entities can be Self-linked. For example,employees can supervise other employees
  • 20. SYMBOLS AND NOTATIONS(cont….) ● Attributes: Attributes are represented by ovals. A key attribute is the unique, distinguishing characteristic of the entity. For example, an employee's social security number might be the employee's key attribute. A multivalued attribute can have more than one value. For example, an employee entity can have multiple skill values. A derived attribute is based on another attribute. For example, an employee's monthly salary is based on the employee's annual salary. ATTRIBUTE ATTRIBUTE ATTRIBUTE
  • 21. SYMBOLS AND NOTATIONS(cont….) ● Connecting lines: Solid lines that connect attributes to show the relationships of entities in the diagram. ● Cardinality: Cardinality specifies how many instances of an entity relate to one instance of another entity. Ordinality is also closely linked to cardinality. While cardinality specifies the occurrences of a relationship, ordinality describes the relationship as either mandatory or optional. In other words, cardinality specifies the maximum number of relationships and ordinality specifies the absolute minimum number of relationships.
  • 22. INFORMATION ENGINEERING STYLE USED IN ER- DIAGRAM MEANING ● Zero or More ● One or More ● One and only One ● Zero or One Relationships (Cardinality and Modality) SYMBOLS ● ● ● ●
  • 23. INFORMATION ENGINEERING STYLE USED IN ER- DIAGRAM(cont...) MEANING ● A one through many notation on one side of a relationship and a one and only one on the other. ● A zero through many notation on one side of a relationship and a one and only one on the other. ● A one through many notation on one side of a relationship and a zero or one notation on the other. ● A zero through many notation on one side of a relationship and a zero or one notation on the other. Many - to - One SYMBOLS ● ● ● ●
  • 24. INFORMATION ENGINEERING STYLE USED IN ER- DIAGRAM(cont...) MEANING ● A zero through many on both sides of a relationship. ● A one through many on both sides of a relationship. ● A zero through many on one side and a one through many on the other. ● A one and only one notation on one side of a relationship and a zero or one on the other. ● A one and only one notation on both sides Many - to - One SYMBOLS ● ● ● ● .
  • 25. 3.EXTENDED FEATURES OF ERD ● Introduction ● Generalization ● Specialization ● Inheritance
  • 26. Introduction The ER Model has the power of expressing database entities in a conceptual hierarchical manner. As the hierarchy goes up, it generalizes the view of entities, and as we go deep in the hierarchy, it gives us the detail of every entity included. Going up in this structure is called generalization, where entities are clubbed together to represent a more generalized view. For example, a particular student named Kabindra can be generalized along with all the students. The entity shall be a student, and further, the student is a person. The reverse is called specialization where a person is a student, and that student is Kabindra.
  • 27. Generalization In generalization, a number of entities are brought together into one generalized entity based on their similar characteristics. For example: Kabindra, Mukesh, Gopal, Shiv Chandra can all be generalized as member of this Group. Members of this group Kabindra Mukesh Gopal ShivChandra
  • 28. Specialization Specialization is the opposite of generalization. In specialization, a group of entities is divided into sub- groups based on their characteristics. Take a group ‘Person’ for example. A person has name, date of birth, gender, etc. These properties are common in all persons, human beings. But in a company, persons can be identified as employee, employer, customer, or vendor, based on what role they play in the company. PERSON TEACHERSTUDENT IS A
  • 29. Inheritance We use all the above features of ER-Model in order to create classes of objects in object-oriented programming. The details of entities are generally hidden from the user; this process known as abstraction. Inheritance is an important feature of Generalization and Specialization. It allows lower-level entities to inherit the attributes of higher-level entities. For example, the attributes of a Person class such as name, age, and gender can be inherited by lower-level entities such as Student or Teacher. PERSON TEACHERSTUDENT IS A GENDER AGE NAME ROLL NO. ID NO.
  • 30. Conclusion So, in this presentation, we studied about Data Models and its parts, i.e Entity Relationship Models, Entity Relationship Diagram and its Extended Features. Beside this, we also learn about the use of them in database system the application, which the information technology field use as one of the major software in computer field.