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

DBMS

Data Base Management Systems Presentation

Uploaded by

keshav777bio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

DBMS

Data Base Management Systems Presentation

Uploaded by

keshav777bio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

ER MODEL & DIAGRAM

Presented
by –
 Keshav Mittal (057)
 Ishaan Garg (031)
 Vansh Sharma (062)
 Armaan Singh (060)
 Amrit Kumar Rao (061)
ER MODEL
 ER model stands for an Entity-Relationship
model. It is a high-level data model. This model is
used to define the data elements and
relationship for a specified system.

 It develops a conceptual design for the database.


It also develops a very simple and easy to design
view of data.

 In ER modeling, the database structure is


portrayed as a diagram called an entity-
ENTITY

An entity may be an
object, place, person, or
an event which stores
data in the database. In
an entity-relationship
diagram, an entity is
represented by a
rectangle. Student,
ENTITY TYPES
STRONG ENTITY TYPE WEAK ENTITY TYPE
Strong entity are those entity types which Weak entity type doesn't have a key
has a key attribute. attribute.

The primary key helps in identifying each Weak entity type can't be identified on its
entity uniquely. own. It depends upon some other strong
entity for its distinct identity.

It is represented by a rectangle. A weak entity is represented by a double


outlined rectangle.
The relationship between a weak entity type and strong entity type
is called an IDENTIFYING RELATIONSHIP and shown with a
ENTITY TYPES
double outlined diamond instead of a single outlined diamond. This
representation can be seen in the diagram below-
~ An attribute in an Entity-Relationship Model describes
the properties or characteristics of an entity.

~ It is represented by an oval or ellipse shape in the


ER diagram.

~ Every oval shape represents one attribute and is


directly connected to its entity which is in the rectangle
in shape.

ATTRIBUTES
• An attribute which contains an atomic value
and cannot be divided further is called a
simple attribute.
SIMPLE
• For example, Gender and Salary of a ATTRIBU
person.
• It is also represented by an oval. TE
• An attribute which can uniquely identify an
entity in an entity set is called a key attribute.
• It represents a primary key in the ER diagram. KEY
In an Entity-Relationship diagram, the key
attribute is denoted by an oval with an ATTRIBU
underlying line.
• For example, employee_id will be unique
TE
for each employee.
• An attribute which can be derived from other
attributes is called a derived attribute.
• These attributes are represented by a dashed DERIVED
oval shape.
• For example, employee age is a derived ATTRIBU
attribute as it changes over time and can be
derived from another attribute DOB.
TE
• An attribute which contains more than one
value for a given entity.
MULTI-VALUED
• For example, an employee can have more ATTRIBUTE
than one mobile number and email address.
• An attribute which is a combination of two
or more simple attributes is called a
composite attribute. COMPOSIT
• It is represented by an ellipse, and that
ellipse comprises of other ellipses.
E
• For example, the Name attribute of an ATTRIBUT
employee entity type consists of First
name, Second name, and Last name. E
~ A relationship is used to describe the relation
between entities. Diamond or rhombus is used
to represent the relationship

RELATIONSHIP
TYPES OF RELATIONSHIP :
1. ONE TO ONE
2. ONE TO MANY
3. MANY TO ONE
4. MANY TO MANY
ONE TO ONE

When only one instance of an entity ONE TO MANY


is associated with the relationship,
then it is known as one to one When only one instance of the entity
relationship. on the left, and more than one
instance of an entity on the right
For example, A female can marry associates with the relationship then
to one male, and a male can marry this is known as a one-to-many
to one female. relationship.

For example, Scientist can invent


many inventions, but the invention is
done by the only specific scientist.
MANY TO ONE

When more than one instance of the MANY TO MANY


entity on the left, and only one
instance of an entity on the right When more than one instance of the
associates with the relationship then entity on the left, and more than one
it is known as a many-to-one instance of an entity on the right
relationship. associates with the relationship then it
is known as a many-to-many
For example, Student enrolls for relationship.
only one course, but a course can
have many students. For example, Employee can assign by
many projects and project can have
many employees.
THANK YOU

You might also like