ER Modeling Edited
ER Modeling Edited
Instructor:
Nkurunungi Edison
• Entity occurrence
– Uniquely identifiable object of an entity type.
• Relationship occurrence
– Uniquely identifiable association, which
includes one occurrence from each
participating entity type.
• Relationship of degree :
– two is binary
– three is ternary
– four is quaternary.
• Attribute Domain
– Set of allowable values for one or more
attributes.
– E.g. Rooms in hotel (1-300), Age (1-99), Married (yes or no),
Nationality (Nepalese, Indian, American, or British), Color (Red ,
Yellow , Green)
• Multi-valued Attribute
– Attribute that holds multiple values for each
occurrence of an entity type (e.g. a person may have
multiple phone numbers, multiple degrees etc)
21
Attributes
• Derived Attribute
– Attribute that represents a value that is derivable
from value of a related attribute, or set of
attributes, not necessarily in the same entity type.
– The value for the derived attribute is derived from the
stored attribute. For example 'Date of birth' of a
person is a stored attribute. The value for the attribute
'AGE' can be derived by subtracting the 'Date of
Birth'(DOB) from the current date.
23
Keys
• Candidate Key
– Minimal set of attributes that uniquely identifies each
occurrence of an entity type.
– a column in a table which has the ability to become a primary
key.
• Primary Key
– Candidate key selected to uniquely identify each occurrence
of an entity type.
– The attribute or combination of attributes that uniquely
identifies a row or record.
• Composite Key
– A candidate key that consists of two or more attributes.
• Cardinality
– Describes maximum number of possible
relationship occurrences for an entity
participating in a given relationship type.
• Participation
– Determines whether all or only some entity
occurrences participate in a relationship.