Week 3
Week 3
Week 3
________Baniwalid _______
Week 3
Mustafa Abuali spring 2017
Outline
Entities
Attributes
Relationship
Entity Types
Attributes Types
ER Model concepts
1-Simple
Each entity has a single atomic value for the attribute.
For example, SSN or Sex.
Types of Attributes (2)
2-Composite
3- Multi-valued
An entity may have multiple values for that attribute.
For example, Color of a CAR or PreviousDegrees of a STUDENT.
Denoted as {Color} or {PreviousDegrees}.
Types of Attributes (3)
4-Derived attribute:-
is an attribute whose value is calculated (derived) from other attributes. The derived
attribute need not be physically stored within the database; instead, it can be derived by
using an algorithm. For example, an employee’s age, EMP_AGE, may be found by
computing the integer value of the difference between the current date and the birth date
ofthe employee.
Key Attributes (1)
Relationship instances
In the mini-world represented by figure below employees e1, e2, e3 and e6 work for
department d1, e2 and e4 works for d2 and e5 and e7 work for d3.
Relationship types
1-Binary Relationship .
2-Ternary Relationship.
3-Recursive Relationship.
1- Partial
2- Total