Database Management System - Lecture 2
Database Management System - Lecture 2
DATABASE MANAGEMENT
SYSTEM
01/22/2024
Instructor Details
2
01/22/2024
ER (Entity Relationship) Diagram in DBMS
3
School Database:
01/22/2024
Component of ER Diagram
5
01/22/2024
1. Entity:
6
01/22/2024
a. Weak Entity
7
01/22/2024
2. Attribute
8
01/22/2024
a. Key Attribute
9
01/22/2024
b. Composite Attribute
10
01/22/2024
c. Multivalued Attribute
11
An attribute can have more than one value. These attributes are
known as a multivalued attribute. The double oval is used to represent
multivalued attribute.
For example, a student can have more than one phone number.
01/22/2024
d. Derived Attribute
12
01/22/2024
3. Relationship
13
01/22/2024
1. One-to-One Relationship
14
01/22/2024
b. One-to-many relationship
15
When only one instance of the entity on the left, and more than one
instance of an entity on the right associates with the relationship then
this is known as a one-to-many relationship.
For example, Scientist can invent many inventions, but the invention
is done by the only specific scientist.
01/22/2024
c. Many-to-one relationship
16
When more than one instance of the entity on the left, and only one
instance of an entity on the right associates with the relationship then
it is known as a many-to-one relationship.
For example, Student enrolls for only one course, but a course can
have many students.
01/22/2024
d. Many-to-many relationship
17
When more than one instance of the entity on the left, and more than
one instance of an entity on the right associates with the relationship
then it is known as a many-to-many relationship.
For example, Employee can assign by many projects and project can
have many employees.
01/22/2024
Notation of ER diagram
18
01/22/2024
Resource
19
01/22/2024
20 Thank you
01/22/2024