SlideShare a Scribd company logo
1 of 27
ER Diagram Basics and Extensions
An Entity Relationship Diagram is a diagram that represents relationships among entities in a database. It is commonly
known as an ER Diagram. An ER Diagram in DBMS plays a crucial role in designing the database.
ER Diagram Basics and Extensions
An Entity Relationship Diagram is a diagram that represents relationships among entities in a database. It is
commonly known as an ER Diagram. An ER Diagram in DBMS plays a crucial role in designing the
database.
An Entity Relationship Diagram (ER Diagram) pictorially explains the relationship between entities
to be stored in a database. Fundamentally, the ER Diagram is a structural design of the database. It
acts as a framework created with specialized symbols for the purpose of defining the relationship
between the database entities. ER diagram is created based on three principal components: entities,
attributes, and relationships.
Peter Chen proposed ER Diagrams in 1971 to create a uniform convention that can be used as a conceptual
modeling tool. Many models were presented and discussed, but none were suitable. The data structure
diagrams offered by Charles Bachman also inspired his model.
ER Diagram Basics and Extensions
Why Use ER Diagrams in DBMS?
 ER Diagram helps you conceptualize the database and lets you know which fields need to be embedded
for a particular entity
 ER Diagram gives a better understanding of the information to be stored in a database
 It reduces complexity and allows database designers to build databases quickly
 It helps to describe elements using Entity-Relationship models
 It allows users to get a preview of the logical structure of the database
ER Diagram Basics and Extensions
Symbols Used in ER Diagrams
Rectangles: This Entity Relationship Diagram symbol represents entity types
Ellipses: This symbol represents attributes
Diamonds: This symbol represents relationship types
Lines: It links attributes to entity types and entity types with other relationship types
Primary key: Here, it underlines the attributes
Double Ellipses: Represents multi-valued attributes
ER Diagram Basics and Extensions
ER Diagram Basics and Extensions
Components of ER Diagram
Entitiy, Attributes, Relationships etc form the components of ER Diagram and there are defined symbols
and shapes to represent each one of them.
Entity
Simple rectangular box represents an Entity.
ER Diagram Basics and Extensions
Components of ER Diagram
Relationships between Entities - Weak and Strong
Rhombus is used to setup relationships between two or more entities.
ER Diagram Basics and Extensions
Components of ER Diagram
Attributes for any Entity
Ellipse is used to represent attributes of any entity. It is connected to the entity.
ER Diagram Basics and Extensions
Components of ER Diagram
Weak Entity
A weak Entity is represented using double rectangular boxes. It is generally connected to another entity.
ER Diagram Basics and Extensions
Components of ER Diagram
Key Attribute for any Entity
To represent a Key attribute, the attribute name inside the Ellipse is underlined.
ER Diagram Basics and Extensions
Components of ER Diagram
Derived Attribute for any Entity
Derived attributes are those which are derived based on other attributes, for example, age can be derived
from date of birth.
To represent a derived attribute, another dotted ellipse is created inside the main ellipse.
ER Diagram Basics and Extensions
Components of ER Diagram
Multivalued Attribute for any Entity
Double Ellipse, one inside another, represents the attribute which can have multiple values.
ER Diagram Basics and Extensions
Components of ER Diagram
Composite Attribute for any Entity
A composite attribute is the attribute, which also has attributes.
ER Diagram Basics and Extensions
ER Diagram: Entity
An Entity can be any object, place, person or class. In ER Diagram, an entity is represented using
rectangles. Consider an example of an Organisation- Employee, Manager, Department, Product and many
more can be taken as entities in an Organisation.
ER Diagram Basics and Extensions
ER Diagram: Weak Entity
Weak entity is an entity that depends on another entity. Weak entity doesn't have anay key attribute of its
own. Double rectangle is used to represent a weak entity.
ER Diagram Basics and Extensions
ER Diagram: Attribute
An Attribute describes a property or characterstic of an entity. For example, Name, Age, Address etc can
be attributes of a Student. An attribute is represented using eclipse.
ER Diagram Basics and Extensions
ER Diagram: Key Attribute
Key attribute represents the main characterstic of an Entity. It is used to represent a Primary key. Ellipse
with the text underlined, represents Key Attribute.
ER Diagram Basics and Extensions
ER Diagram: Composite Attribute
An attribute can also have their own attributes. These attributes are known as Composite attributes.
ER Diagram Basics and Extensions
ER Diagram: Relationship
A Relationship describes relation between entities. Relationship is represented using diamonds or rhombus.
ER Diagram Basics and Extensions
There are three types of relationship that exist between Entities.
1. Binary Relationship
2. Recursive Relationship
3. Ternary Relationship
ER Diagram Basics and Extensions
ER Diagram: Binary Relationship
Binary Relationship means relation between two Entities. This is further divided into three types.
One to One Relationship
This type of relationship is rarely seen in real world.
ER Diagram Basics and Extensions
ER Diagram: Binary Relationship
One to Many Relationship
The below example showcases this relationship, which means that 1 student can opt for many courses, but
a course can only have 1 student. Sounds weird! This is how it is.
ER Diagram Basics and Extensions
ER Diagram: Binary Relationship
Many to One Relationship
It reflects business rule that many entities can be associated with just one entity. For example, Student
enrolls for only one Course but a Course can have many Students.
ER Diagram Basics and Extensions
ER Diagram: Binary Relationship
Many to Many Relationship
The below diagram represents that one student can enroll for more than one courses. And a course can have
more than 1 student enrolled in it.
ER Diagram Basics and Extensions
ER Diagram: Recursive Relationship
When an Entity is related with itself it is known as Recursive Relationship.
ER Diagram Basics and Extensions
ER Diagram: Ternary Relationship
Relationship of degree three is called Ternary relationship.
A Ternary relationship involves three entities. In such relationships we always consider two entites together
and then look upon the third.
ER Diagram Basics and Extensions
ER Diagram: Ternary Relationship
For example, in the diagram above, we have three related entities, Company, Product and Sector. To
understand the relationship better or to define rules around the model, we should relate two entities and
then derive the third one.
A Company produces many Products/ each product is produced by exactly one company.
A Company operates in only one Sector / each sector has many companies operating in it.
Considering the above two rules or relationships, we see that although the complete relationship involves
three entities, but we are looking at two entities at a time.

More Related Content

Similar to Administrator of Online Examination has multiple features such as Add, Delete, Update Topics and Question.

1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdf
gaurav70287
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
miftah88
 

Similar to Administrator of Online Examination has multiple features such as Add, Delete, Update Topics and Question. (20)

Presentation of saad on e-r diagram.
Presentation of saad on e-r diagram.Presentation of saad on e-r diagram.
Presentation of saad on e-r diagram.
 
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
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
ER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docxER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docx
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship model
 
E r diagram
E r diagramE r diagram
E r diagram
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
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...
 
1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdf
 
Sree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and ScienceSree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and Science
 
ER Model ppt
ER Model pptER Model ppt
ER Model ppt
 
ER-Diagram.pptx
ER-Diagram.pptxER-Diagram.pptx
ER-Diagram.pptx
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
ERD(2).ppt
ERD(2).pptERD(2).ppt
ERD(2).ppt
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 

Administrator of Online Examination has multiple features such as Add, Delete, Update Topics and Question.

  • 1. ER Diagram Basics and Extensions An Entity Relationship Diagram is a diagram that represents relationships among entities in a database. It is commonly known as an ER Diagram. An ER Diagram in DBMS plays a crucial role in designing the database.
  • 2. ER Diagram Basics and Extensions An Entity Relationship Diagram is a diagram that represents relationships among entities in a database. It is commonly known as an ER Diagram. An ER Diagram in DBMS plays a crucial role in designing the database. An Entity Relationship Diagram (ER Diagram) pictorially explains the relationship between entities to be stored in a database. Fundamentally, the ER Diagram is a structural design of the database. It acts as a framework created with specialized symbols for the purpose of defining the relationship between the database entities. ER diagram is created based on three principal components: entities, attributes, and relationships. Peter Chen proposed ER Diagrams in 1971 to create a uniform convention that can be used as a conceptual modeling tool. Many models were presented and discussed, but none were suitable. The data structure diagrams offered by Charles Bachman also inspired his model.
  • 3. ER Diagram Basics and Extensions Why Use ER Diagrams in DBMS?  ER Diagram helps you conceptualize the database and lets you know which fields need to be embedded for a particular entity  ER Diagram gives a better understanding of the information to be stored in a database  It reduces complexity and allows database designers to build databases quickly  It helps to describe elements using Entity-Relationship models  It allows users to get a preview of the logical structure of the database
  • 4. ER Diagram Basics and Extensions Symbols Used in ER Diagrams Rectangles: This Entity Relationship Diagram symbol represents entity types Ellipses: This symbol represents attributes Diamonds: This symbol represents relationship types Lines: It links attributes to entity types and entity types with other relationship types Primary key: Here, it underlines the attributes Double Ellipses: Represents multi-valued attributes
  • 5. ER Diagram Basics and Extensions
  • 6. ER Diagram Basics and Extensions Components of ER Diagram Entitiy, Attributes, Relationships etc form the components of ER Diagram and there are defined symbols and shapes to represent each one of them. Entity Simple rectangular box represents an Entity.
  • 7. ER Diagram Basics and Extensions Components of ER Diagram Relationships between Entities - Weak and Strong Rhombus is used to setup relationships between two or more entities.
  • 8. ER Diagram Basics and Extensions Components of ER Diagram Attributes for any Entity Ellipse is used to represent attributes of any entity. It is connected to the entity.
  • 9. ER Diagram Basics and Extensions Components of ER Diagram Weak Entity A weak Entity is represented using double rectangular boxes. It is generally connected to another entity.
  • 10. ER Diagram Basics and Extensions Components of ER Diagram Key Attribute for any Entity To represent a Key attribute, the attribute name inside the Ellipse is underlined.
  • 11. ER Diagram Basics and Extensions Components of ER Diagram Derived Attribute for any Entity Derived attributes are those which are derived based on other attributes, for example, age can be derived from date of birth. To represent a derived attribute, another dotted ellipse is created inside the main ellipse.
  • 12. ER Diagram Basics and Extensions Components of ER Diagram Multivalued Attribute for any Entity Double Ellipse, one inside another, represents the attribute which can have multiple values.
  • 13. ER Diagram Basics and Extensions Components of ER Diagram Composite Attribute for any Entity A composite attribute is the attribute, which also has attributes.
  • 14. ER Diagram Basics and Extensions ER Diagram: Entity An Entity can be any object, place, person or class. In ER Diagram, an entity is represented using rectangles. Consider an example of an Organisation- Employee, Manager, Department, Product and many more can be taken as entities in an Organisation.
  • 15. ER Diagram Basics and Extensions ER Diagram: Weak Entity Weak entity is an entity that depends on another entity. Weak entity doesn't have anay key attribute of its own. Double rectangle is used to represent a weak entity.
  • 16. ER Diagram Basics and Extensions ER Diagram: Attribute An Attribute describes a property or characterstic of an entity. For example, Name, Age, Address etc can be attributes of a Student. An attribute is represented using eclipse.
  • 17. ER Diagram Basics and Extensions ER Diagram: Key Attribute Key attribute represents the main characterstic of an Entity. It is used to represent a Primary key. Ellipse with the text underlined, represents Key Attribute.
  • 18. ER Diagram Basics and Extensions ER Diagram: Composite Attribute An attribute can also have their own attributes. These attributes are known as Composite attributes.
  • 19. ER Diagram Basics and Extensions ER Diagram: Relationship A Relationship describes relation between entities. Relationship is represented using diamonds or rhombus.
  • 20. ER Diagram Basics and Extensions There are three types of relationship that exist between Entities. 1. Binary Relationship 2. Recursive Relationship 3. Ternary Relationship
  • 21. ER Diagram Basics and Extensions ER Diagram: Binary Relationship Binary Relationship means relation between two Entities. This is further divided into three types. One to One Relationship This type of relationship is rarely seen in real world.
  • 22. ER Diagram Basics and Extensions ER Diagram: Binary Relationship One to Many Relationship The below example showcases this relationship, which means that 1 student can opt for many courses, but a course can only have 1 student. Sounds weird! This is how it is.
  • 23. ER Diagram Basics and Extensions ER Diagram: Binary Relationship Many to One Relationship It reflects business rule that many entities can be associated with just one entity. For example, Student enrolls for only one Course but a Course can have many Students.
  • 24. ER Diagram Basics and Extensions ER Diagram: Binary Relationship Many to Many Relationship The below diagram represents that one student can enroll for more than one courses. And a course can have more than 1 student enrolled in it.
  • 25. ER Diagram Basics and Extensions ER Diagram: Recursive Relationship When an Entity is related with itself it is known as Recursive Relationship.
  • 26. ER Diagram Basics and Extensions ER Diagram: Ternary Relationship Relationship of degree three is called Ternary relationship. A Ternary relationship involves three entities. In such relationships we always consider two entites together and then look upon the third.
  • 27. ER Diagram Basics and Extensions ER Diagram: Ternary Relationship For example, in the diagram above, we have three related entities, Company, Product and Sector. To understand the relationship better or to define rules around the model, we should relate two entities and then derive the third one. A Company produces many Products/ each product is produced by exactly one company. A Company operates in only one Sector / each sector has many companies operating in it. Considering the above two rules or relationships, we see that although the complete relationship involves three entities, but we are looking at two entities at a time.