IT 220 - 2018 - Unit - 2
IT 220 - 2018 - Unit - 2
IT 220 - 2018 - Unit - 2
Management System
By:
Kul P. Paudel
[email protected]
[email protected]
Note: Please refer course book to explore more knowledge.
Unit 2: Entity Relation Model
LH: 8
In Database one entities is different from another entities. Eg: Employee,
organization, event etc.
An entity set is a set of entities of same type that share the same
properties. Eg: set of all employees, organization etc.
Attributes
Compound
Key Attributes Attributes
Multivalued Derived
Attributes Attributes
Figure: ER Diagram 1
Lines link attributes to entity sets and entity sets to relationship sets.
Entity set that does not have a primary is referred as a weak entity set.
it can defined as an entity that cannot be identified by its own attributes.
The primary key of a weak entity set is formed by the primary key of the
strong entity set on which the weak entity set is existence dependent,
plus the weak entity set’s discriminator.
An entity set which has a unique key is known as strong entity set.
date
Flt_no dept_time
DOB SID
Phone
CID
SID
Address
Generalization:
Generalization
Person
IS A
Rollno Tid
Student Teacher
Class_id shift
Work
Emp _on
Branch
manage
Manager