SlideShare a Scribd company logo
1 of 16
Download to read offline
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

What's hot (20)

Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
RELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptxRELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptx
 
Dbms
DbmsDbms
Dbms
 
Er model
Er modelEr model
Er model
 
Database Keys
Database KeysDatabase Keys
Database Keys
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummies
 
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
 
ER diagram powerpoint
ER diagram powerpointER diagram powerpoint
ER diagram powerpoint
 
Database design
Database designDatabase design
Database design
 
Erd examples
Erd examplesErd examples
Erd examples
 
E-R diagram in Database
E-R diagram in DatabaseE-R diagram in Database
E-R diagram in Database
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Database Chapter 3
Database Chapter 3Database Chapter 3
Database Chapter 3
 
Erd
ErdErd
Erd
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Erd optionality
Erd optionalityErd optionality
Erd optionality
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
DbMs
DbMsDbMs
DbMs
 

Similar to Entity relationship diagram (erd)

Similar to Entity relationship diagram (erd) (20)

dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
Db lec 02_new
Db lec 02_newDb lec 02_new
Db lec 02_new
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
Data Models
Data ModelsData Models
Data Models
 
Data modeling
Data modelingData modeling
Data modeling
 
27 fcs157al3
27 fcs157al327 fcs157al3
27 fcs157al3
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Data Modeling Er
Data Modeling ErData Modeling Er
Data Modeling Er
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
database
databasedatabase
database
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdf
 
Er model
Er modelEr model
Er model
 
DBMS CS 4-5
DBMS CS 4-5DBMS CS 4-5
DBMS CS 4-5
 
Lecture one db
Lecture one dbLecture one db
Lecture one db
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
8.pptx
8.pptx8.pptx
8.pptx
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 

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)