SlideShare a Scribd company logo
BASICS OF DATABASE
MANAGEMENT SYSTEM
(CS-335)
UNIT-2
Dr. Halima Sadia
Associate Professor
Department of CSE
Integral University
UNIT-2
 Entity Relationship Model Concepts.
 Notation for ER diagram.
 Types of Attributes & Notations.
ENTITY RELATIONSHIP MODEL CONCEPTS
 The ER model defines the conceptual view/logical
structure of a database.
 An ER model is a design or blueprint of a database that
can later be implemented as a database.
 The Entity-Relation model represents real-world entities
and the relationship between them.
 A real-world thing either living or non-living.
 This model is based on three basic concepts:
 Entities
 Attributes
 Relationships
NOTATION FOR ER DIAGRAM
 Entity
 It may be a physical thing or simply a fact about the enterprise or
an event that happens in the real world.
 An entity can be place, person, object, event or a concept, which
stores data in the database.
 Examples: a customer, student, car or product.
 Notation : Rectangle
 Relationship
 How two or more entities are related to each other.
 Association between two or more entities.
 Entities take part in relationships.
 For example, an employee works in a department, a
student enrolls in a course are called relationship
 Notation : Diamond
Entity_Name
Taught
By
Student Faculty
NOTATION FOR ER DIAGRAM
 Entity set:
 An entity set is a group of similar kind of entities. It may
contain entities with attribute sharing similar values.
 E.g. Students registered in a particular program and enroll in
various courses. A lecturer from the specific department takes
each course, and each lecturer teaches various group of
students.
 Attributes:
 Entities are said to hold certain characteristics or properties
called attributes.
 All attributes have values. For example, a student entity may
have rollno., name, class, age, phone, address, email etc. as
attributes.
 Notation : Oval or Ellipse
Roll No
Student
Roll No Name
D.O.B
Phone No Address
Email
faculty
Name Course
Phone No
Phone
No
Salar
y
Teach
es
NOTATION FOR ER DIAGRAM
 Types of Attributes :
 Simple and Composite Attributes:
 Simple attributes are atomic values, which cannot be divided further. e.g. roll
no, phone no
 Composite attributes are made of more than one simple attribute. They can be
divided into simple attributes e.g. name can be divided into first name, middle
name and last name, similarly address can be divided into city, state, pin etc.
 Single-value and Multi-value Attributes:
 Single-value attributes contain single value e.g. Aadhar no., PAN etc.
 Multi-value attributes may contain more than one values e.g. phone no. and
email .
 Derived Attributes:
 Attributes whose value can be calculated or derived by some other attribute
present e.g. age can be derived from D.O.B.
 They do not exist in the physical database, but their values are derived from
other attributes.
TYPES OF ATTRIBUTES & NOTATIONS
Simple and Composite
Attributes
Single-value and Multi-
value Attributes
Derived Attributes
Simple Attribute : Oval
e.g.
Single Value : Oval Derived :
Dashed oval
Composite Attribute :
branched ovals
e.g.
Multi-Value :
Double oval
Roll No
Name
First_
Name
Middle_Name
Last_Name
Phone No.
EXAMPLE ER-DIAGRAM
 Draw a simple ER-Diagram to depict patient and doctor
relationship.
Entity Relationship Model: ER concepts and Notations
Entity Relationship Model: ER concepts and Notations
EXAMPLES (MORE)
 https://123projectlab.com/er-diagram-for-hospital-man
agement-system
/
THANK YOU

More Related Content

DOCX
ER Diagram_Kameshwari.docx
PPTX
E-R Diagram and their models using datbase
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
5e7ry754.pptx
PPTX
Entity Relationship Model and ER Diagram
PPTX
42_16SCCCS4_20200520053835884587894.pptx
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
ER Diagram_Kameshwari.docx
E-R Diagram and their models using datbase
Entity Relationship Diagram – ER Diagram in DBMS.pptx
5e7ry754.pptx
Entity Relationship Model and ER Diagram
42_16SCCCS4_20200520053835884587894.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx

Similar to Entity Relationship Model: ER concepts and Notations (20)

PDF
ER diagram is created based on three principal components: entities, attribut...
PPTX
Er model
PDF
Chapter 3 Database Modeling short slide.pdf
PPTX
ER DIAGRAM & ER MODELING IN DBMS
PPTX
Rdbms ER model
PDF
ER diagram
PPTX
E_R-Diagram (2).pptx
PPTX
Database
PPTX
The Entity-Relationship Model(ER Diagram).pptx
PPTX
PDF
3. Chapter Three.pdf
PPT
E r model
PPTX
Entity Relationship Modelling
PPT
Chapter3
PPT
Chapter3
PPTX
Data Models
PDF
dbms mannual.pdf
PDF
Lecture 2 database management system.pdf
PPTX
Data model and entity relationship
PPTX
Presentation on Entity Relationship Diagram.pptx
ER diagram is created based on three principal components: entities, attribut...
Er model
Chapter 3 Database Modeling short slide.pdf
ER DIAGRAM & ER MODELING IN DBMS
Rdbms ER model
ER diagram
E_R-Diagram (2).pptx
Database
The Entity-Relationship Model(ER Diagram).pptx
3. Chapter Three.pdf
E r model
Entity Relationship Modelling
Chapter3
Chapter3
Data Models
dbms mannual.pdf
Lecture 2 database management system.pdf
Data model and entity relationship
Presentation on Entity Relationship Diagram.pptx
Ad

Recently uploaded (20)

PDF
737-MAX_SRG.pdf student reference guides
PPT
Project quality management in manufacturing
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Sustainable Sites - Green Building Construction
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Geodesy 1.pptx...............................................
PPTX
Current and future trends in Computer Vision.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
web development for engineering and engineering
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
737-MAX_SRG.pdf student reference guides
Project quality management in manufacturing
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Sustainable Sites - Green Building Construction
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
UNIT 4 Total Quality Management .pptx
additive manufacturing of ss316l using mig welding
Safety Seminar civil to be ensured for safe working.
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Geodesy 1.pptx...............................................
Current and future trends in Computer Vision.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
R24 SURVEYING LAB MANUAL for civil enggi
CH1 Production IntroductoryConcepts.pptx
web development for engineering and engineering
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Foundation to blockchain - A guide to Blockchain Tech
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Ad

Entity Relationship Model: ER concepts and Notations

  • 1. BASICS OF DATABASE MANAGEMENT SYSTEM (CS-335) UNIT-2 Dr. Halima Sadia Associate Professor Department of CSE Integral University
  • 2. UNIT-2  Entity Relationship Model Concepts.  Notation for ER diagram.  Types of Attributes & Notations.
  • 3. ENTITY RELATIONSHIP MODEL CONCEPTS  The ER model defines the conceptual view/logical structure of a database.  An ER model is a design or blueprint of a database that can later be implemented as a database.  The Entity-Relation model represents real-world entities and the relationship between them.  A real-world thing either living or non-living.  This model is based on three basic concepts:  Entities  Attributes  Relationships
  • 4. NOTATION FOR ER DIAGRAM  Entity  It may be a physical thing or simply a fact about the enterprise or an event that happens in the real world.  An entity can be place, person, object, event or a concept, which stores data in the database.  Examples: a customer, student, car or product.  Notation : Rectangle  Relationship  How two or more entities are related to each other.  Association between two or more entities.  Entities take part in relationships.  For example, an employee works in a department, a student enrolls in a course are called relationship  Notation : Diamond Entity_Name Taught By Student Faculty
  • 5. NOTATION FOR ER DIAGRAM  Entity set:  An entity set is a group of similar kind of entities. It may contain entities with attribute sharing similar values.  E.g. Students registered in a particular program and enroll in various courses. A lecturer from the specific department takes each course, and each lecturer teaches various group of students.  Attributes:  Entities are said to hold certain characteristics or properties called attributes.  All attributes have values. For example, a student entity may have rollno., name, class, age, phone, address, email etc. as attributes.  Notation : Oval or Ellipse Roll No
  • 6. Student Roll No Name D.O.B Phone No Address Email faculty Name Course Phone No Phone No Salar y Teach es
  • 7. NOTATION FOR ER DIAGRAM  Types of Attributes :  Simple and Composite Attributes:  Simple attributes are atomic values, which cannot be divided further. e.g. roll no, phone no  Composite attributes are made of more than one simple attribute. They can be divided into simple attributes e.g. name can be divided into first name, middle name and last name, similarly address can be divided into city, state, pin etc.  Single-value and Multi-value Attributes:  Single-value attributes contain single value e.g. Aadhar no., PAN etc.  Multi-value attributes may contain more than one values e.g. phone no. and email .  Derived Attributes:  Attributes whose value can be calculated or derived by some other attribute present e.g. age can be derived from D.O.B.  They do not exist in the physical database, but their values are derived from other attributes.
  • 8. TYPES OF ATTRIBUTES & NOTATIONS Simple and Composite Attributes Single-value and Multi- value Attributes Derived Attributes Simple Attribute : Oval e.g. Single Value : Oval Derived : Dashed oval Composite Attribute : branched ovals e.g. Multi-Value : Double oval Roll No Name First_ Name Middle_Name Last_Name Phone No.
  • 9. EXAMPLE ER-DIAGRAM  Draw a simple ER-Diagram to depict patient and doctor relationship.