Lecture 8 ER Model
Lecture 8 ER Model
1
8/27/2022
2. ATTRIBUTE
KEY ATTRIBUTE
COMPOSITE ATTRIBUTE
3. RELATIONSHIP
7 8
1. ENTITY ENTITY
• An Entity can be any object, place, person or class.
• Consider an example of an Organisation.
Entity
9 10
ATTRIBUTE
11 12
2
8/27/2022
13 14
COMPOSITE ATTRIBUTE
KEY ATTRIBUTE
• An attribute can also have their own attributes.
15 16
3. RELATIONSHIPS RELATIONSHIPS
• There are three types of relationship that exist between Entities.
• A Relationship describes relations between entities.
17 18
3
8/27/2022
19 20
21 22
• Also called as Unary Relationship • A Person may be married to only one Person.
23 24
4
8/27/2022
• An Employee may manage many Employees, but an • A Subject may have many other Subjects as prerequisites
Employee is managed by only one Employee. and each Subject may be a prerequisite to many other
Subjects
25 26
27 28
29 30
5
8/27/2022
THANK YOU
For queries
Email: vineet.e13038@cumail.in
31