Chapter 2 PPT Sem I Sep 2019
Chapter 2 PPT Sem I Sep 2019
Chapter 2 PPT Sem I Sep 2019
Relationship Model
Objectives
After studying this chapter, you should be able to:
• Concisely define each of the following key terms:
Entity, entity type, entity set, simple attribute,
composite attribute, single valued attribute, multi
valued attribute, derived attribute, key, relationship,
relationship set, relationship type, degree of
relationship, weak entity, attribute on relationship
type, relationship constraint, participation.
• Construct ER diagrams to represent a given scenario.
Introduction
COMPOSITE
E.g. Address may consist of “Number”, “Street”
and “Suburb” → Address = {59 + ‘Meek Street’ +
‘Kingsford’}
Types of Attributes
MULTIVALUED attributes: Attributes that
have a set of values for each entity
E.g. Degrees of a person: ‘ BSc’ , ‘MIT’, ‘PhD’
DERIVED attributes: Attributes Contain
values that are calculated from other
attributes
Eg. Age can be derived from attribute
DateOfBirth. In this situation, DateOfBirth
might be called Stored Attribute
Notation of Composite attribute in ER Diagram
Key Notation
Key Identifier
Key Identifier is an attribute or a group of attributes whose
values can be used to uniquely identify individual entity in
an entity set.
For example, for the entity EMPLOYEE = {EmpID, Name,
Address, Age, Salary}
Definite keys are any set that involve EmpID
Possible keys might be {Name, Address}
Unlikely keys: {Name}, {Age}