Entity Relationship Model
ER Model
-
High-Level Data Model used to define the data elements and relatinship for a specified system.
-
It consists of entity, attribute and relationship.
-
Entity
-
An entity can be an object, class, person or place.
-
Represented By square.
-
Types:
- Strong Entity: They have key attribute.
- Weak Entity: They dont have key attribute.
Attribute
-
Property of an entity.
-
Represented by Eclipse.
-
Types:
-
Key attribute
- Represents a primary key.
-
Composite Attribute
- Attribute composed of other attribute.
-
Multi-valued Attribute
- Can have More than one value.
-
Derived Attribute
- Attribute derived from other attribute.
- Represented by dashed ellipse.
- Example: age
-
Relationship
- One-to-one
- One-to-many
- Many-to-one
- Many-to-many