SlideShare a Scribd company logo
Database
Presentation Topic
E-R Diagram
Presented By:
Mubeen Kiran
Objective
What is E-R Diagram?
What is entity?
Types of entities
What is Attributes?
Types Of Attributes
What is E-R Diagram?
An entity relationship model, also called an entity-relationship (ER)
diagram, is a graphical representation of entities and their
relationships to each other, typically used in computing in regard to
the organization of data within databases or information systems. An
entity is a piece of data-an object or concept about which data is
stored.
Entity
An entity can be a real-world object, either animate or inanimate, that
can be easily identifiable. For example, in a school database, students,
teachers, classes, and courses offered can be considered as entities. All
these entities have some attributes or properties that give them their
identity.
An entity set is a collection of similar types of entities. An entity set may
contain entities with attribute sharing similar values. For example, a
Students set may contain all the students of a school; likewise a Teachers
set may contain all the teachers of a school from all faculties. Entity sets
need not be disjoint.
Types of Entities
.Weak entities & Strong Entities
.Associative Entities
Weak Entities
In a relational database, a weak entity is
an entity that cannot be uniquely
identified by its attributes alone;
therefore, it must use a foreign key in
conjunction with its attributes to create a
primary key. The foreign key is typically a
primary key of an entity it is related to.
Strong Entity
An entity set that has a primary key is
called as Strong entity
Associative Entities
Associative is a type of entity that associate the instances of one or many entity
type with one another. The Attributes associative represent the relationship
between the entity instances.
Attributes
Entities are represented by means of their properties, called attributes.
All attributes have values. For example, a student entity may have name,
class, and age as attributes.
There exists a domain or range of values that can be assigned to
attributes. For example, a student's name cannot be a numeric value. It
has to be alphabetic. A student's age cannot be negative, etc
Types Of Attributes
2.Composite attribute
3.Derived attribute
4.Single-value attribute
5.Multi-value attribute
1.Simple attribute
Simple attribute
Simple attributes are atomic values, which cannot be divided
further. For example, a Person Can have Only One gender and
one date of birth.
Composite attribute −
Composite attributes are made of more than one simple attribute.
For example, a student's complete name may have first_name and
last_name.
Derived attribute −
Derived attributes are the attributes that do not exist in the physical
database, but their values are derived from other attributes present
in the database. For example, age Phone no in a department should
not be saved directly in the database, instead it can be derived. For
another example, age can be derived from data_of_birth.
Single-value attribute
Single-value attributes contain single value. For example − Age of person is singal-
valued attributes. Gender is also single-valued Attribute.
Multi-value attribute−
Multi-value attributes may contain more than one values. For
example, a person have Name, Address, Birthday, Age, hobbies etc.
Database
Database

More Related Content

PPTX
Unit iv dbms
PPTX
Er diagrams presentation
PPT
ER-Model-ER Diagram
PPTX
Data Models
PPTX
Er diagram
PPT
ER Diagram
PPTX
Er model
Unit iv dbms
Er diagrams presentation
ER-Model-ER Diagram
Data Models
Er diagram
ER Diagram
Er model

What's hot (20)

PPTX
Er model ppt
PPT
Entity relationship modelling
PPT
Entity Relationship Diagram
PPT
Relational Databases 2
PPTX
Attributes
PPTX
Entity Relationship Diagrams
PPT
Entity relationship diagram
PPTX
ER DIAGRAM & ER MODELING IN DBMS
PPTX
ER MODEL
PPTX
Data model
PPTX
Data model and entity relationship
PPTX
Entity Relationship Diagram
PPT
Chapter 2
PPTX
Entity relationship diagram_KSMS_BCA_2nd Sem_Saborni Pal_20th March 2020
PPT
39f1b9a797dbms chapter2 b.sc2 (1)
PPT
39f1b9a797dbms chapter2 b.sc2
PDF
Db lec 02_new
PDF
Lecture one db
PPTX
Entity-Relationship Data Model
PPT
DBMS UNIT1
Er model ppt
Entity relationship modelling
Entity Relationship Diagram
Relational Databases 2
Attributes
Entity Relationship Diagrams
Entity relationship diagram
ER DIAGRAM & ER MODELING IN DBMS
ER MODEL
Data model
Data model and entity relationship
Entity Relationship Diagram
Chapter 2
Entity relationship diagram_KSMS_BCA_2nd Sem_Saborni Pal_20th March 2020
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2
Db lec 02_new
Lecture one db
Entity-Relationship Data Model
DBMS UNIT1
Ad

Similar to Database (20)

PPTX
ER-Diagram.pptx
PPTX
E-R Diagram and their models using datbase
PPTX
Entity Relationship Modelling
PPT
ER Diagram introduction .ppt
PPT
3144-unit-1entityrmodel-171122051336.ppt
PPTX
Entity Relationship Model and ER Diagram
PPTX
Entity Relationship MODEL in Database Management.pptx
PPTX
Database week 5 lecture includes spexiafix
DOCX
Chapter-3 Data Modeling Using the Entity-Relationship Model
PDF
ER Diag.pdfddcdjcjfvhjd jdkcjdnckenciebchehcksl
PPTX
ERD.pptxasdasdasdasdasdasdsssaaasdasdasd
PPTX
unit 1 Entity Relationship Modelling.pptx
PPTX
RDBMS ER (Entity Relationship) Diagram.pptx
PDF
RDBMS ERD
PPTX
Attributes in Entity-Relationship Model
PPTX
The Entity-Relationship Model(ER Diagram).pptx
PPTX
Presentation on Entity Relationship Diagram.pptx
PPT
ermodelN in database management system.ppt
PPTX
E_R-Diagram (2).pptx
PPTX
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
ER-Diagram.pptx
E-R Diagram and their models using datbase
Entity Relationship Modelling
ER Diagram introduction .ppt
3144-unit-1entityrmodel-171122051336.ppt
Entity Relationship Model and ER Diagram
Entity Relationship MODEL in Database Management.pptx
Database week 5 lecture includes spexiafix
Chapter-3 Data Modeling Using the Entity-Relationship Model
ER Diag.pdfddcdjcjfvhjd jdkcjdnckenciebchehcksl
ERD.pptxasdasdasdasdasdasdsssaaasdasdasd
unit 1 Entity Relationship Modelling.pptx
RDBMS ER (Entity Relationship) Diagram.pptx
RDBMS ERD
Attributes in Entity-Relationship Model
The Entity-Relationship Model(ER Diagram).pptx
Presentation on Entity Relationship Diagram.pptx
ermodelN in database management system.ppt
E_R-Diagram (2).pptx
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
Ad

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Cell Structure & Organelles in detailed.
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Lesson notes of climatology university.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
master seminar digital applications in india
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Computing-Curriculum for Schools in Ghana
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Institutional Correction lecture only . . .
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Cell Structure & Organelles in detailed.
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Lesson notes of climatology university.
Abdominal Access Techniques with Prof. Dr. R K Mishra
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Computing-Curriculum for Schools in Ghana
O5-L3 Freight Transport Ops (International) V1.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Renaissance Architecture: A Journey from Faith to Humanism
Institutional Correction lecture only . . .
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Database

  • 3. Objective What is E-R Diagram? What is entity? Types of entities What is Attributes? Types Of Attributes
  • 4. What is E-R Diagram? An entity relationship model, also called an entity-relationship (ER) diagram, is a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems. An entity is a piece of data-an object or concept about which data is stored.
  • 5. Entity An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. For example, in a school database, students, teachers, classes, and courses offered can be considered as entities. All these entities have some attributes or properties that give them their identity. An entity set is a collection of similar types of entities. An entity set may contain entities with attribute sharing similar values. For example, a Students set may contain all the students of a school; likewise a Teachers set may contain all the teachers of a school from all faculties. Entity sets need not be disjoint.
  • 6. Types of Entities .Weak entities & Strong Entities .Associative Entities
  • 7. Weak Entities In a relational database, a weak entity is an entity that cannot be uniquely identified by its attributes alone; therefore, it must use a foreign key in conjunction with its attributes to create a primary key. The foreign key is typically a primary key of an entity it is related to. Strong Entity An entity set that has a primary key is called as Strong entity
  • 8. Associative Entities Associative is a type of entity that associate the instances of one or many entity type with one another. The Attributes associative represent the relationship between the entity instances.
  • 9. Attributes Entities are represented by means of their properties, called attributes. All attributes have values. For example, a student entity may have name, class, and age as attributes. There exists a domain or range of values that can be assigned to attributes. For example, a student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be negative, etc
  • 10. Types Of Attributes 2.Composite attribute 3.Derived attribute 4.Single-value attribute 5.Multi-value attribute 1.Simple attribute
  • 11. Simple attribute Simple attributes are atomic values, which cannot be divided further. For example, a Person Can have Only One gender and one date of birth.
  • 12. Composite attribute − Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
  • 13. Derived attribute − Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, age Phone no in a department should not be saved directly in the database, instead it can be derived. For another example, age can be derived from data_of_birth.
  • 14. Single-value attribute Single-value attributes contain single value. For example − Age of person is singal- valued attributes. Gender is also single-valued Attribute.
  • 15. Multi-value attribute− Multi-value attributes may contain more than one values. For example, a person have Name, Address, Birthday, Age, hobbies etc.