=> Entity,
- Definition, entity is an object that exists and is distinguishable from other objects.
- Example : specific person, company, event, plant.
- An entity set ?, Entity set is a set of entities of the same type that share the same properties.Example: set of all persons, companies, trees, holidays
=> Attributes,
- Definition, attributes is An entity is represented by a set of attributes, that is descriptive properties possessed by all members of an entity set.
- Example:
customer = (customer-id, customer-name, customer-street, customer-city)
loan = (loan-number, amount)
- domain – the set of permitted values for each attribute
- Attribute types:
- Simple and composite attributes.
- Single-valued and multi-valued attributes.E.g. multivalued attribute: phone-numbers.
- Derived attributes.Can be computed from other attributes.E.g. age, given date of birth
=> Relationship,
- Definition, a relationship is an association among several entities.
- Example:
HayesdepositorA-102
customer entity relationship set account entity
- A relationship set is a mathematical relation among n >= 2 entities, each taken from entity sets {(e1, e2, … en) | e1 Î E1, e2 Î E2, …, en Î En} where (e1, e2, …, en) is a relationship.
- Example:
(Hayes, A-102) Î depositor