SlideShare a Scribd company logo
1 of 39
E-R
Diagram
Presented by:
Fatiha Rashid
Javeria
Rafeeq
Logical representation of data in an
organization.
Views the entire system as a collection
of entities related to one another.
Introduced by peter chen in 1976.
Advantages of E-R Model:
Elements of E-R
Model:
1: Entities
2: Attributes
3: Relationships
Entities:
An Entity is a Person,Place,Thing or
Event for which data is collected and
maintained.
•Represented by a rectangle
Entity namesymbol
Entitytype/Entityclass:
A set of entities with same attributes
Exmaple: Student entity class is a set of All
students.
Book entity type is for all Books etc.
Entity instance
A member of an entity class is known
as entity instance .
Also known as entity occurrence.
Entity Class
Entity
instance
Entity class
Entity instance
Example:
Name, address,Class
and Email of a students
are his attributes. Attribute name
Symbol
Attribute Domain:
*A set of possible values for an
attribute
*All atributes have domain
Example : The domain for Grade
point average (GPA) can be from 0
to 4.
*A logical connection between different enities.
* Established on the basis of interaction between these
entities.
Participents: entities participating In a relationship are
called participents.
Relationship
name
Doctor treats Patient
Teacher teaches students
If all entities of that entity set may be participant in
the relationship.
Example: In supplier_part relationship,the
relationship is total if every part is supplied by a
supplier.
If some of the entities of that entity set may be
participant in the relationship.
Example: If certain parts are available without a
supplier.
1: Simple
2: composite
3: single valued
4: multi-valued
5: stored
6: derived
7: identifiers
*Cannot be subdivided into smaller
components.
PERSON
GENDER
*Can be divided into smaller components.
EMPLOYEE
ADDRESS
street
city
country
Single-valued Attributes:
Contain single valued value.
Employee
Gender
Multi-valued Attributes:
Contain two or more values.
person
name
city hobies
*Stored in a database.
*Not stored in database but derived
from another value.
Identifies an entity
instance among other
instances In entity class.
week entity Can exist only if any other entity
exist, also called child ,dependent .
Strong entity Can exist without depending upon the
existance of another entity .
PERSON HAS CHILDCHILD
Owner/ identifying
owner:
entity on which the
weak entity depends.Example
Type of entity that associates the
instances of one or many entity type
with one another.
•The number of entities in a relationship .
•Types:
•1: unary relationship
•2: binary relationship
•3: ternary relationship
Exist between the instances of two
entity types.
Types:
1: one-to-one
2:one-to-many
3:many –to-many
The maximum number of
relationships.
*Circle means zero
*Line means………..one
*Crow’s foot symbol
means….many
employee
department
jobs
equipment
suppliers project
name DOB
Phone no
Project
no
Project
name
Project
cost duration
name Address
Date of last meeting
number
E-R diagram in Database
E-R diagram in Database
E-R diagram in Database
E-R diagram in Database

More Related Content

What's hot

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mapping
Shubham Saini
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
Jafar Nesargi
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 

What's hot (20)

ER Diagram
ER DiagramER Diagram
ER Diagram
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Mapping ER and EER Model
Mapping ER and EER ModelMapping ER and EER Model
Mapping ER and EER Model
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Modelo entidad relación
Modelo entidad relaciónModelo entidad relación
Modelo entidad relación
 
DBMS UNIT1
DBMS UNIT1DBMS UNIT1
DBMS UNIT1
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mapping
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Normal forms
Normal formsNormal forms
Normal forms
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructors
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 

Viewers also liked

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
 
All the world's a stage poem theme, analysis,summary
All the world's a stage poem theme, analysis,summaryAll the world's a stage poem theme, analysis,summary
All the world's a stage poem theme, analysis,summary
Fatiha Qureshi
 
Types of databases
Types of databasesTypes of databases
Types of databases
PAQUIAAIZEL
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
sameerraaj
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineering
S.M. Murad Hasan Tanvir
 
Three state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power pointThree state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power point
SlideTeam.net
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
weichen
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
Sadhana28
 

Viewers also liked (20)

E R Model Diagram of DBMS
E R Model Diagram of DBMSE R Model Diagram of DBMS
E R Model Diagram of DBMS
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
All the world's a stage poem theme, analysis,summary
All the world's a stage poem theme, analysis,summaryAll the world's a stage poem theme, analysis,summary
All the world's a stage poem theme, analysis,summary
 
E R Diagram
E R DiagramE R Diagram
E R Diagram
 
Types dbms
Types dbmsTypes dbms
Types dbms
 
Types of databases
Types of databasesTypes of databases
Types of databases
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
E r diagram
E r diagramE r diagram
E r diagram
 
PROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOTPROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOT
 
Building a MVC eCommerce Site in Under 5 Minutes
Building a MVC eCommerce Site in Under 5 MinutesBuilding a MVC eCommerce Site in Under 5 Minutes
Building a MVC eCommerce Site in Under 5 Minutes
 
E commerce application using asp.net mvc4
E commerce application using asp.net mvc4E commerce application using asp.net mvc4
E commerce application using asp.net mvc4
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineering
 
Three state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power pointThree state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power point
 
Object diagram
Object diagramObject diagram
Object diagram
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
class diagram
class diagramclass diagram
class diagram
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
 
Student Portal Example
Student Portal ExampleStudent Portal Example
Student Portal Example
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 

Similar to E-R diagram in Database

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
sukrithlal008
 

Similar to E-R diagram in Database (20)

Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
database
databasedatabase
database
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Database
DatabaseDatabase
Database
 
Introduction to database-ER Model
Introduction to database-ER ModelIntroduction to database-ER Model
Introduction to database-ER Model
 
Entity Relationship (ER) Model
Entity Relationship (ER) ModelEntity Relationship (ER) Model
Entity Relationship (ER) Model
 
Data Models
Data ModelsData Models
Data Models
 
Data model and entity relationship
Data model and entity relationshipData model and entity relationship
Data model and entity relationship
 
Data Models.pptx
Data Models.pptxData Models.pptx
Data Models.pptx
 
ER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docxER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docx
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
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
 
ERD(2).ppt
ERD(2).pptERD(2).ppt
ERD(2).ppt
 
Unit iv dbms
Unit   iv dbmsUnit   iv dbms
Unit iv dbms
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Database Management Systems - CS403 Power Point Slides Lecture 07 (1).ppt
Database Management Systems - CS403 Power Point Slides Lecture 07 (1).pptDatabase Management Systems - CS403 Power Point Slides Lecture 07 (1).ppt
Database Management Systems - CS403 Power Point Slides Lecture 07 (1).ppt
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

E-R diagram in Database