0% found this document useful (0 votes)
14 views

Entity Relationship Model

The document discusses entity relationship modeling. It defines key concepts like entities, attributes, relationships, and how they are represented in an entity relationship diagram. Entities can be strong or weak. Attributes can be key, composite, multivalued, or derived. Relationships can be one-to-one, one-to-many, many-to-one, or many-to-many. An example ER diagram of a university is presented to illustrate these concepts. Benefits and limitations of the ER model are also summarized.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Entity Relationship Model

The document discusses entity relationship modeling. It defines key concepts like entities, attributes, relationships, and how they are represented in an entity relationship diagram. Entities can be strong or weak. Attributes can be key, composite, multivalued, or derived. Relationships can be one-to-one, one-to-many, many-to-one, or many-to-many. An example ER diagram of a university is presented to illustrate these concepts. Benefits and limitations of the ER model are also summarized.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Entity Relationship Model

Group 3
Introduction Entity Relationship Model

• ER models are used to model real-world objects like a person, a car, or a company and
the relation between these real-world objects.

• An Entity–relationship model (ER model) describes the structure of a database with the
help of a diagram, which is known as Entity Relationship Diagram (ER Diagram).
What is an Entity Relationship Diagram?

 An Entity-relationship Diagram (ER Diagram)


describes the relationship of entities that need
to be stored in a database
 ER diagram is created based on three main
 ER Diagram is mainly a structural design for
components entities, attributes, and
the database. It is a framework using
relationships
specialized symbols to define the relationship
between entities
Why Use ER Diagrams?

 Helps us conceptualize the database and  Reduces complexity and saves time which
help us know which fields need to be allows you to build databases quickly
embedded for a particular entity  Helps to describe elements using Entity
 ER Diagram gives a better understanding Relationship model
of the information to be stored in a
database
Symbols Used in ER Model

ER Model is used to model the logical view of the system from a data perspective which
consists of these symbols:

• Rectangles: Rectangles represent Entities in the ER Model.


• Ellipses: Ellipses represent Attributes in the ER Model.
• Diamond: Diamonds represent Relationships among Entities.
• Lines: Lines represent attributes to entities and entity sets with other relationship types.
• Double Ellipse: Double Ellipses represent Multi-Valued Attributes.
• Double Rectangle: Double Rectangle represents a Weak Entity.
Components of ER Diagram
Entity

 An entity can be either living


or non-living component
 An entity is showcased as a
rectangle in an ER diagram
 For Example, Student study
course, here both student and
course are entities
Entity

Strong Entity Weak Entity


 An entity that relies over another entity is called
o A Strong Entity is a type of entity that has a
weak entity
key Attribute. Strong Entity does not depend
on other Entity in the Schema. It has a  The weak entity is showcased as a double
primary key, that helps in identifying it rectangle in ER Diagram
uniquely, and it is represented by a rectangle.
These are called Strong Entity Types.
Attribute

 An attribute describes the


property of an entity
 An attribute is represented as
Oval in an ER diagram
Attribute

Key Attribute Composite Attribute


 Key attribute uniquely identifies an entity  An attribute that is composed of other attributes is
from an entity set known as a composite attribute
 The text of key attribute is underlined  The composite attribute is represented with an
oval, and that attribute is further connected with
 For example, student RollNo can uniquely other ovals
identify a student from a set of students
Attribute

Multivalued Attribute Derived Attribute


 An attribute that can possess more than one value,  An attribute that can be extracted from other
such attributes are called multivalued attributes attributes of the entity is known as derived
 The double oval is used to represent a multivalued attribute
attribute  In ER diagram, derived attribute is represented by
dashed oval
The Complete Entity Type Student with its Attributes can be represented as:
Relationship

 A relationship is showcased
by diamond shape in ER
diagram
 It shows the relationship
among entities
Relationship

One to One Relationship One to Many Relationship


 When a single element of an entity is associated  When a single element of an entity is associated
with a single element of another entity that is with more than one element of another entity that
called one to one relationship is called one to many relationship
 For example, a student has only one Identification  For example, a customer can place many orders,
card and an Identification card is given to one but an order cannot be placed by many customers
person
Relationship

Many to One Relationship Many to Many Relationship


 When more than one element of an entity is  When more than one element of an entity is
related with a single element of another entity associated with more than one element of another
then it is called many to one relationship entity that is called many to many relationship
 For example, Student enrolls for only one course,  For example, Employee can be assigned to many
but a course can have many students projects and project can have many employees
Example Organization: University
ER Model

Benefits of ER Model Downsides of ER Model


 Offers clear representation of database structure.  Complexity: Representing complex relationships and
 Assists in designing databases mirroring real- business rules can be challenging, leading to intricate
models that may be difficult to understand and maintain.
world scenarios.
 Ambiguity: Some real-world scenarios may not fit
 Enhances communication among stakeholders
neatly into the model, causing uncertainty in how to
during design phase.
accurately represent certain aspects of the data.
 Implementation Challenges: Mapping the conceptual
ER model to a physical database design may require
careful consideration and might involve additional
complexities in the actual implementation.
 Cassey Gulfan
 Chariss Lumongsod
 Daphne Mondejar
 John Lloyd Dela Rama
 John Moses Rosalejos Puyot
THANK YOU!  Janna Krista Kim
 Ross Pareja

You might also like