SlideShare a Scribd company logo
ENTITY RELATIONSHIP
DIAGRAM (ERD)
GROUP MEMBERS
 MD. Shahariar Alam (162-15-8113)
 Avijit Roy (162-15-7898)
 MD. Monir Hossain (162-15-8033)
 MD. Muin Mahmud (162-15-7983)
 MD. Hasanuzzaman (162-15-8025)
 Amiya Adhikary (162-15-7980)
WHAT IS AN ERD & WHY IT IS USED?
Database systems are often modeled using an Entity Relationship Diagram
(ERD) as the "blueprint" from which the actual data is stored.
The ERD is used to communicate
the logical structure of the
database to users.
Entity: An entity can be a real-world object, either animate or inanimate, that can
be easily identifiable.
Example:
Person Place Object
Entity Set: An entity set is a collection of similar types of entities. An entity set
may contain entities with attribute sharing similar values.
ATTRIBUTES
Entities are represented by means of their properties, called attributes. All
attributes have values. Example : Student :- Name, Class, Age
Types ofAttributes:
Simple attribute: Simple attributes are atomic values, which cannot be divided
further.
Example:The entities like age, marital status cannot be subdivided and are simple
attributes.
 Composite attribute: A composite attribute is one that is composed of smaller
parts.
Example: Name, Date of Birth.
Derived attribute: A derived attribute is an attribute whose value is calculated
(derived) from other attributes.
Example: Age, it can be calculated from date of birth.
Single-value attribute: Single-value attributes contain single value.
Example: Gender, Date of Birth.
Multi-value attribute: Multi-value attributes may contain more than one values.
Example: Phone number, Email.
RELATIONSHIP
Associations between instances of one or more entity types that is of
Interest.
Degree of Relationship
Binary Relationship: between the instances of two entity types.
Teacher SubjectTeaches
Ternary Relationship:Among the instances of three entity types.
Teacher StudentTeaches
Subject
CARDINALITY
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.
 One to one
 One to many
 Many to one
 Many to many
KEY CONSTRAINTS
 Super Key
 Candidate Key
 Primary Key
 Foreign Key
Attribute
Primary Key
Candidate KeySuper Key
GENERAL STEPS TO CREATE AN ERD
 Identify the entities
 Identify the relation between entities
 Identify the Cardinality constraint
 Identify the entity's attributes
 Draw the ERD
A SIMPLE EXAMPLE
A company has several departments. Each department has a
supervisor and at least one employee. Every supervisor has
only one department under him. Employees must be
assigned to at least one, but possibly more departments.At
least one employee is assigned to a project, but an employee
may be on vacation and not assigned to any projects.The
important data fields are the names of the departments,
projects, supervisors and employees. Supervisors and
Employees also have ID, Email, Phone and a unique project
number.
Supervisor
S_ID
Name
Email
Phone
Department_name
Project
Project_Number
Project_Name
Employee
E_ID
Name
Email
Phone
Project_Number
Department
Department_Name
Run
by
Assi
gned
Wor
ks
on
11
1…*1…*
0…* 1
ER Diagram
RELATIONAL SCHEMA
Department(Department_Name)
Supervisor(S_ID, Name, Email, Phone, Department_Name)
Employee(E_ID, Name, Email, Phone, Project_Number)
Project(Project_Number, Project_Name)
Entity relationship  diagram (erd)

More Related Content

ODP
ER Model in DBMS
PDF
Enhanced Entity-Relationship (EER) Modeling
PPT
Erd (info sys)
PPTX
ER MODEL
PDF
Chapter 3 Entity Relationship Model
PPTX
Chapter-4 Enhanced ER Model
DOCX
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
PDF
Cloud concepts principles of cloud computing
ER Model in DBMS
Enhanced Entity-Relationship (EER) Modeling
Erd (info sys)
ER MODEL
Chapter 3 Entity Relationship Model
Chapter-4 Enhanced ER Model
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
Cloud concepts principles of cloud computing

What's hot (20)

PDF
Introduction To Oracle Sql
PPT
Entity relationship diagram (erd)
PPT
Aggregate functions
PPT
MySql slides (ppt)
PDF
DBTG MODEL
PPTX
Data Manipulation Language
PPT
Entity Relationship Model
PPTX
Object relational and extended relational databases
PPTX
DBMS and its Models
PPTX
Er diagram
PDF
Relational database- Fundamentals
PPTX
Basic sql Commands
PPT
Chapter 2 database environment
PPTX
joins in database
PPT
Chapter10 conceptual data modeling
PPT
Database Chapter 3
PDF
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
PPTX
Entity Relationship Model
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
Introduction To Oracle Sql
Entity relationship diagram (erd)
Aggregate functions
MySql slides (ppt)
DBTG MODEL
Data Manipulation Language
Entity Relationship Model
Object relational and extended relational databases
DBMS and its Models
Er diagram
Relational database- Fundamentals
Basic sql Commands
Chapter 2 database environment
joins in database
Chapter10 conceptual data modeling
Database Chapter 3
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Entity Relationship Model
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
Ad

Similar to Entity relationship diagram (erd) (20)

PPTX
Entity Relationship Diagram
PPTX
Entity Relationship Diagram
PPTX
E_R-Diagram (2).pptx
PPT
ermodelN in database management system.ppt
PPT
Entity relationship diagram (erd)
PPTX
Entity-Relationship Data Model
PPT
D I T211 Chapter 3
PPT
Entity relationship diagram (erd)
PPTX
Database management systems 3 - Data Modelling
PPTX
PPTX
Unit 1 Data Modeling_Updated (2) (2).pptx
PDF
dbms mannual.pdf
PPTX
IT6701 Information Management Unit-I
PPTX
Unit iv dbms
PPTX
Chapter 4_ERD- introduction to entity relationship diagram.pptx
DOCX
Entity relationship diagram (erd)
PPT
ER-Model-ER Diagram
PPTX
unit 1 Entity Relationship Modelling.pptx
PPT
ER Diagram introduction .ppt
Entity Relationship Diagram
Entity Relationship Diagram
E_R-Diagram (2).pptx
ermodelN in database management system.ppt
Entity relationship diagram (erd)
Entity-Relationship Data Model
D I T211 Chapter 3
Entity relationship diagram (erd)
Database management systems 3 - Data Modelling
Unit 1 Data Modeling_Updated (2) (2).pptx
dbms mannual.pdf
IT6701 Information Management Unit-I
Unit iv dbms
Chapter 4_ERD- introduction to entity relationship diagram.pptx
Entity relationship diagram (erd)
ER-Model-ER Diagram
unit 1 Entity Relationship Modelling.pptx
ER Diagram introduction .ppt
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Reach Out and Touch Someone: Haptics and Empathic Computing
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars

Entity relationship diagram (erd)

  • 2. GROUP MEMBERS  MD. Shahariar Alam (162-15-8113)  Avijit Roy (162-15-7898)  MD. Monir Hossain (162-15-8033)  MD. Muin Mahmud (162-15-7983)  MD. Hasanuzzaman (162-15-8025)  Amiya Adhikary (162-15-7980)
  • 3. WHAT IS AN ERD & WHY IT IS USED? Database systems are often modeled using an Entity Relationship Diagram (ERD) as the "blueprint" from which the actual data is stored. The ERD is used to communicate the logical structure of the database to users.
  • 4. Entity: An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. Example: Person Place Object Entity Set: An entity set is a collection of similar types of entities. An entity set may contain entities with attribute sharing similar values.
  • 5. ATTRIBUTES Entities are represented by means of their properties, called attributes. All attributes have values. Example : Student :- Name, Class, Age Types ofAttributes: Simple attribute: Simple attributes are atomic values, which cannot be divided further. Example:The entities like age, marital status cannot be subdivided and are simple attributes.  Composite attribute: A composite attribute is one that is composed of smaller parts. Example: Name, Date of Birth.
  • 6. Derived attribute: A derived attribute is an attribute whose value is calculated (derived) from other attributes. Example: Age, it can be calculated from date of birth. Single-value attribute: Single-value attributes contain single value. Example: Gender, Date of Birth. Multi-value attribute: Multi-value attributes may contain more than one values. Example: Phone number, Email.
  • 7. RELATIONSHIP Associations between instances of one or more entity types that is of Interest.
  • 8. Degree of Relationship Binary Relationship: between the instances of two entity types. Teacher SubjectTeaches
  • 9. Ternary Relationship:Among the instances of three entity types. Teacher StudentTeaches Subject
  • 10. CARDINALITY 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.  One to one  One to many  Many to one  Many to many
  • 11. KEY CONSTRAINTS  Super Key  Candidate Key  Primary Key  Foreign Key Attribute Primary Key Candidate KeySuper Key
  • 12. GENERAL STEPS TO CREATE AN ERD  Identify the entities  Identify the relation between entities  Identify the Cardinality constraint  Identify the entity's attributes  Draw the ERD
  • 13. A SIMPLE EXAMPLE A company has several departments. Each department has a supervisor and at least one employee. Every supervisor has only one department under him. Employees must be assigned to at least one, but possibly more departments.At least one employee is assigned to a project, but an employee may be on vacation and not assigned to any projects.The important data fields are the names of the departments, projects, supervisors and employees. Supervisors and Employees also have ID, Email, Phone and a unique project number.
  • 15. RELATIONAL SCHEMA Department(Department_Name) Supervisor(S_ID, Name, Email, Phone, Department_Name) Employee(E_ID, Name, Email, Phone, Project_Number) Project(Project_Number, Project_Name)