COMPROG-LESSON3-ERD
COMPROG-LESSON3-ERD
RELATION
DIAGRAM
LESSON 3
LEARNING
COMPETENCY
Document the program scope and limits according to project
standards [TLE_ICTCP9-12PLIIa-j-2]
Learning Objectives:
What am I learning?
List the components of an Entity Relationship Diagram (ERD) that are
essential for defining the scope and limits of a database project.
Learning Objectives:
3
Introduction to
ENTITY
RELATION
DIAGRAM
LESSON 3.1
WHAT IS ERD?
An Entity Relationship Diagram is a diagram that
represents relationships among entities in a
database. It is commonly known as an ER
Diagram. An ER Diagram in DBMS plays a crucial
role in designing the database. Today’s business
world previews all the requirements demanded
by the users in the form of an ER Diagram. Later,
it's forwarded to the database administrators to
design the database.
WHAT IS ERD?
An Entity Relationship Diagram (ER Diagram)
pictorially explains the relationship between
entities to be stored in a database.
Fundamentally, the ER Diagram is a structural
design of the database.
It acts as a framework created with specialized
symbols for the purpose of defining the
relationship between the database entities. ER
diagram is created based on three principal
components: entities, attributes, and
The following diagram showcases two entities -
Student and Course, and their relationship. The
relationship described between student and
course is many-to-many, as a course can be
opted by several students, and a student can opt
for more than one course. Student entity
possesses attributes - Stu_Id, Stu_Name &
Stu_Age. The course entity has attributes such as
Cou_ID & Cou_Name.
WHAT IS ER Model?
An Entity-Relationship Model represents
the structure of the database with the
help of a diagram. ER Modelling is a
systematic process to design a
database as it would require you to
analyze all data requirements before
implementing your database.
HISTORY OF ER Model?
Peter Chen proposed ER Diagrams in
1971 to create a uniform convention
that can be used as a conceptual
modeling tool. Many models were
presented and discussed, but none
were suitable. The data structure
diagrams offered by Charles Bachman
also inspired his model.
Why Use ER Diagrams in
•
DBMS?
ER Diagram helps you conceptualize
the database and lets you know
which fields need to be embedded for
a particular entity.
• ER Diagram gives a better
understanding of the information to
be stored in a database
Why Use ER Diagrams in
•
DBMS?
It reduces complexity and allows
database designers to build
databases quickly.
• It helps to describe elements using
Entity-Relationship models.
• It allows users to get a preview of the
logical structure of the database.
Symbols Used in ER
•
Diagrams
Rectangles: This Entity Relationship
Diagram symbol represents entity
types
• Ellipses: This symbol represents
attributes
• Diamonds: This symbol represents
relationship types
Symbols Used in ER
•
Diagrams
Lines: It links attributes to entity
types and entity types with other
relationship types
• Primary key: Here, it underlines the
attributes
• Double Ellipses: Represents multi-
valued attributes
Components of ER Diagram
an ER Diagram based on three basic
concepts:
Entities Attributes Relationships
-One-to-One Relationships
-One-to-Many Relationships
-Weak Entity -Key Attribute
-Many-to-One Relationships
-Composite -Many-to-Many
Attribute Relationships
-Multivalued
Attribute
-Derived Attribute
1. Entities
An entity can be either a
living or non-living
component.
It showcases an entity as a
rectangle in an ER diagram.
Entities
For example, in a student study course,
both the student and the course are
entities.
WEAK Entity
An entity that makes reliance over
another entity is called a weak
entity
1. Requirement Analysis
It’s very crucial to understand the requirements of our application
so that you can think in productive terms. And imply appropriate
integrity constraints to maintain the data integrity & consistency.
DATABASE DESIGN LIFE
CLYCLE
2. Logical & Physical Design
This is the actual design phase that involves
various steps that are to be taken while
designing a database. This phase is further
divided into two stages:
An Example of Logical
Design
DATABASE DESIGN LIFE
CLYCLE
3. Data Insertion and testing for various
integrity constraints
Finally, after implementing the physical design of
the database, we’re ready to input the data & test
our integrity. This phase involves testing our
database for its integrity to see if something got
left out or, if anything new to add & then
integrating it with the desired application.
DATABASE DESIGN LIFE
CLYCLE
Physical Design of Data Model: This
phase involves the implementation of
the logical design made in the previous
stage. All the relationships among data
and integrity constraints are
implemented to maintain consistency &
generate the actual database.
DATABASE DESIGN LIFE
CLYCLE
Logical Data Model Design
The logical data model design defines
the structure of data and what
relationship exists among those data.
The following are the major components
of the logical design:
DATABASE DESIGN LIFE
1. Data Models: Data modeling is a visual modeling technique
used to get a high-levelCLYCLE
overview of our database. Data models
help us understand the needs and requirements of our database by
defining the design of our database through diagrammatic
representation. Ex: model, Network model, Relational Model,
object-oriented data model.
DATABASE DESIGN LIFE
CLYCLE
2. Entities are objects in the real world, which can have
certain properties & these properties are referred to as
attributes of that particular entity. There are 2 types of
entities: Strong and weak entity, weak entity do not have a
key attribute to identify them, their existence solely depends
on one 1-specific strong entity & also have full participation
in a relationship whereas strong entity does have a key
attribute to uniquely identify them.
5. Normalization: After all the entities are put in place and the
relationship among data is defined, we need to look for loopholes
or possible ambiguities that may arise.
DATABASE ANALYSIS
74
WRITTEN TASK 3
75
RUBRICS
77
1. School Management System
2. Online Retail Store
3. Hospital Management System
4. Library Management System
5. Employee Management System
78
RUBRICS