Professional Documents
Culture Documents
9.2.2 ER Diagram
1
Single-value Attribute
NIC
2
Composite Attribute
F_Name L_Name
Name
3
Derived Attribute
Age
4
Multi-value Attribute
Qualification
5
Example of an Employee Entity
Primary Key attribute
Employee ID
Derived attribute
Component Attributes
First Name
Multi Valued Atb Age
Atattribute
Second
DOB Name Name
Employee
Composite Attribute
Address
Promotion
Student No Tel No
6
Strong Entity Vs Weak Entity
7
Degree of a Relationship
8
Cardinality
One to One
1 1
Person Has NIC
ONE person can have maximum ONE NIC, ONE NIC can be belonged to maximum ONE person
1 M
One to Many
Customer Places Order
ONE customer can place MANY orders and MANY orders can be placed by only ONE customer
Enrolls
M N
Student in Batch
Many to Many
ONE student can enroll in maximum MANY batches ONE batch can contain maximum MANY students
9
One To One
1..1 0..1
10
One To Many
1..1 1..*
11
Many To Many
0..*
1..*
Student Enrolls in
Batch
12
Lesson Summary
Types of Attributes
Types of Entities
Degree of Relationship
Cardinality
One to One
One to Many
Many to Many
13