Introduction to ER
Diagrams in DBMS
Visual representation of data in a database, using entities,
Name: Prachi Rawat
attributes, and relationships.
Enrolment no: 06517002024
BCAA.Morning B Shift I
by
Semester II Azuma .
Core Components: Entities
Definition Types
Real-world objects or concepts about which data is stored. Strong (independent) and weak (dependent) entities.
Core Components:
Attributes
1 Key attributes
Unique identifiers, like “Roll_no”
2 Derived attributes
Attributes can be derived from others, like “Age"
3 Simple attributes
Basic properties, like "Name"
4 Composite attributes
Combined properties, like "Address"
5 Single-valued attributes
single values per entity, like “DoB"
6 Multi-valued attributes
Multiple values per entity, like "Phone Numbers"
Core Components:
Relationships
1 One-to-many
One entity relates to multiple other entities.
2 Many-to-one
Multiple entities relate to one other entity.
3 Many-to-many
Multiple entities relate to multiple other entities.
Core Components:
Notations
Specialization
Creating subtypes of entities.
Generalization
Combining similar entities into a higher-level entity.
Inheritance
Subtypes inherit attributes from their supertypes.
Categories
Representing a collection of entities (Union type).
ER Diagram Symbol and Design Principles
Entities Attributes
Rectangles Ovals
Relationships
Diamonds
Steps to Create an ER Diagram
Refine the diagram
Identify relationships
Review and revise for
Identify attributes
accuracy and clarity.
Identify entities
Define the properties of Determine how entities
Determine the key objects each entity. are related.
or concepts.
ER Diagram Example: Library Database
Books Publisher
Author, Book_Id, Title, Price, Available Pub_Id, Address, Name
Borrowed by Member
DepartmentName Expiry_date, Name, Address,
Memb_type, Memb_date, Memb_Id