SlideShare a Scribd company logo
1 of 31
ER DIAGRAM
(ENTITY RELATIONSHIP DIAGRAM)
Peter Chen in 1976
 ER DIAGRAM USING CHENS NOTATION
 ER DIAGRAM USING CROWS FOOT’S NOTATION
ER DIAGRAM USING CHENS NOTATION
ER DIAGRAM (CHENS NOTATION)
Create an E-R Diagram for College Database
Requirements:
1.A student can enrol for any number of subjects.
2.Each Instructor should teach one or more subjects.
3.Each subject can have any number of students.
 Entity
 Relationship
 Attributes
 Key Attribute of an Entity Type
 Cardinality
MAJOR COMPONENTS:
ENTITY
Represents a person, place, event, or object that you want to track in a database
1.
WEAK ENTITY
• depends on the existence of another entity
• entity that must defined by a foreign key relationship with another entity as it cannot be uniquely identified
by its own attributes alone.
Create an E-R Diagram for College Database
Requirements:
1. A student can enrol for any number of subjects.
2. Each Instructor should teach one or more subjects.
3. Each subject can have any number of students.
Student Instructor Subject
RELATIONSHIP
Describes how one or more entities interact with each other and usually they are VERBS.
2.
Create an E-R Diagram for College Database
Requirements:
1. A student can enrol for any number of subjects.
2. Each Instructor should teach one or more subjects.
3. Each subject can have any number of students.
Student Instructor
Subject
Enrolled Taught
ATTRIBUTE
Describes the various characteristics about an individual entity
3.
MULTIVALUED
ATTRIBUTE DERIVED ATTRIBUTE
an attribute that can have more than one value
Example:
TEACHER SUBJECTS
an attribute based on another attribute
Example:
EMPLOYEE
BIRTH_DATE AGE
Create an E-R Diagram for College Database
Student Instructor
Subject
Enrolled Taught
Student_ID
First_Name
Last_Name
Subject_Code Description Duration
Instructor_ID
First_Name
Last_Name
Requirements:
1. A student can enrol for any number of subjects.
2. Each Instructor should teach one or more subjects.
3. Each course can have any number of students.
KEY ATTRIBUTE
It’s values can be used to identify each entity uniquely
Example:
COMPANY NAME
Create an E-R Diagram for College Database
Student Instructor
Subject
Enrolled Taught
Student_ID
First_Name
Last_Name
Subject_Code Description Duration
Instructor_ID
First_Name
Last_Name
Requirements:
1. A student can enrol for any number of subjects.
2. Each Instructor should teach one or more subjects.
3. Each subject can have any number of students.
CARDINALITY
The count of instances that are allowed or are necessary between entities
• One to One - 1:1
• One to Many - 1:N
• Many to Many - M:N
4.
CHEN’S STYLE:
Create an E-R Diagram for College Database
Student Instructor
Subject
Enrolled Taught
Student_ID
First_Name
Last_Name
Subject_Code Description Duration
Instructor_ID
First_Name
Last_Name
M
N N
1
Requirements:
1. A student can enrol for any number of subjects
2. Each Instructor should teach one or more subjects. (1:N)
3. Each subject can have any number of students. (M:N)
Student Instructor
Subject
Enrolled Taught
Student_ID
First_Name
Last_Name
Subject_Code Description Duration
Instructor_ID
First_Name
Last_Name
M
N
1
N
ENTITY – RELATIONSHIP DIAGRAM
ER DIAGRAM USING CROW’S
FOOT NOTATION
Create an E-R Diagram for College Database
Requirements:
1.A student can enrol for any number of subjects.
2.Each Instructor should teach one or more subjects.
3.Each subject can have any number of students.
STEP 1: ENTITIES
STUDENT INSTRUCTORSUBJECT
STEP 2: ATTRIBUTES
STUDENT
Subject_Code
First_Name
Last_Name
INSTRUCTOR
Instructor_ID
First_Name
Last_Name
Student_ID
First_Name
Last_Name
SUBJECT
SUBJECT
STEP 3: PRIMARY KEY
STUDENT
*Subject_Code
First_Name
Last_Name
INSTRUCTOR
*Instructor_ID
First_Name
Last_Name
*Student_ID
First_Name
Last_Name
SUBJECT
STEP 3: RELATIONSHIP
STUDENT
*Subject_Code
First_Name
Last_Name
INSTRUCTOR
*Instructor_ID
First_Name
Last_Name
*Student_ID
First_Name
Last_Name Enrolled Taught
• Many
• One (mandatory)
• Zero or One
• One or Many (optional)
• Zero or Many (optional)
STEP 4: CARDINALITY
CROW’S FOOT NOTATION
SUBJECT
STEP 4: CARDINALITY
STUDENT
*Subject_Code
First_Name
Last_Name
INSTRUCTOR
*Instructor_ID
First_Name
Last_Name
*Student_ID
First_Name
Last_Name Enrolled Taught
Instructor
Subject
Taught
Student_ID
First_Name
Last_Name
Subject_Code Description Duration
Instructor_ID
First_Name
Last_Name
ANOTHER WAY:
EnrolledStudent
HOW TO CREATE AN ER DIAGRAM?
1. Identify the Entities
2. Identify Relationships
3. Describe the Relationship
4. Add Attributes and the Identify Key Attribute
5. Identify the Cardinality of each entities
6. Complete the Diagram
END

More Related Content

What's hot

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 data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
Naresh Kumar
 
entity-relationship-diagram-chen-&-crow -model.ppt
entity-relationship-diagram-chen-&-crow -model.pptentity-relationship-diagram-chen-&-crow -model.ppt
entity-relationship-diagram-chen-&-crow -model.ppt
IRWANBINISMAILKPMGur1
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 

What's hot (20)

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
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Primary Key & Foreign Key part10
Primary Key & Foreign Key part10Primary Key & Foreign Key part10
Primary Key & Foreign Key part10
 
entity-relationship-diagram-chen-&-crow -model.ppt
entity-relationship-diagram-chen-&-crow -model.pptentity-relationship-diagram-chen-&-crow -model.ppt
entity-relationship-diagram-chen-&-crow -model.ppt
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)
 
EER modeling
EER modelingEER modeling
EER modeling
 
Data model and entity relationship
Data model and entity relationshipData model and entity relationship
Data model and entity relationship
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Erd practice exercises
Erd practice exercisesErd practice exercises
Erd practice exercises
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Entity relationship diagram (erd)
Entity relationship  diagram (erd)Entity relationship  diagram (erd)
Entity relationship diagram (erd)
 
Database schema
Database schemaDatabase schema
Database schema
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 

Similar to ER diagram powerpoint

3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
BUSHRASHAIKH804312
 

Similar to ER diagram powerpoint (20)

ER Diagram- Cardinality.pptx
ER Diagram- Cardinality.pptxER Diagram- Cardinality.pptx
ER Diagram- Cardinality.pptx
 
Unit i b(er model)
Unit i b(er model)Unit i b(er model)
Unit i b(er model)
 
ERModel1.pdf
ERModel1.pdfERModel1.pdf
ERModel1.pdf
 
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
3-db-er_3-db-er_3-db-er_3-db-er_3-db-er.pptx
 
er-models.pptx
er-models.pptxer-models.pptx
er-models.pptx
 
Example for ER diagram part11
Example for ER diagram part11Example for ER diagram part11
Example for ER diagram part11
 
RDBMS ERD
RDBMS ERDRDBMS ERD
RDBMS ERD
 
ER diagram
ER diagramER diagram
ER diagram
 
UNIT 1 INTRODUCTION TO DBMS, ER DIAGRAM, RELATION
UNIT 1 INTRODUCTION TO DBMS, ER DIAGRAM, RELATIONUNIT 1 INTRODUCTION TO DBMS, ER DIAGRAM, RELATION
UNIT 1 INTRODUCTION TO DBMS, ER DIAGRAM, RELATION
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Database part3-
Database part3-Database part3-
Database part3-
 
Dbs4
Dbs4Dbs4
Dbs4
 
ER_model
ER_modelER_model
ER_model
 
5e7ry754.pptx
5e7ry754.pptx5e7ry754.pptx
5e7ry754.pptx
 
Unit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfUnit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdf
 
O6u CS-315A OOP Lecture (1).pdf
O6u CS-315A OOP Lecture (1).pdfO6u CS-315A OOP Lecture (1).pdf
O6u CS-315A OOP Lecture (1).pdf
 
Data base lec3 (erd)
Data base lec3 (erd)Data base lec3 (erd)
Data base lec3 (erd)
 
Unit iv dbms
Unit   iv dbmsUnit   iv dbms
Unit iv dbms
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 

Recently uploaded

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Recently uploaded (20)

WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 

ER diagram powerpoint

Editor's Notes

  1. It is a high level conceptual data modellings technique that helps designers to create accurate and useful conceptual models.
  2. Prof. Peter Chen developed this technique to serve as a tool for communication between designers and users. Chen recognized the problems that are caused when the developers and the users fail to understand each other.
  3. PRIMARY KEY- An attribute or a group of attributes that uniquely identifies an instance of the entity
  4. PRIMARY KEY- An attribute or a group of attributes that uniquely identifies an instance of the entity
  5. PRIMARY KEY- An attribute or a group of attributes that uniquely identifies an instance of the entity