DBMS
DBMS
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.
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.
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