Professional Documents
Culture Documents
Eg.1
Types of Attributes
Composite Attributes
-Attributes composed of multiple components, each
with an independent existence
An attribute
broken into
component
parts
Attributes
Single Valued Attributes
-Property of an entity or a relationship type
Multivalued
an employee can have
more than one skill
Attributes
Derived Attributes
-Attributes that represents a value that is derivable
from value of a related attribute, or set of attributes, not
necessarily in the same entity type
Date
Employed + Current Date
= Year
Employed
Keys
A super key of an entity set is a set of one or more attributes whose
values uniquely determine each entity
Weak entity
Identifying relationship
Umbrella
Example of a weak entity
Attributes on relationships
Attributes may be associated with a many-to-many (or
one-to-one) relationship, as well as with an entity
e.g., an organisation may want to record the date when an
employee completes each course
In the following diagram, the relationship ‘Completes’
joins the EMPLOYEE and COURSE entities, and
Date_Completed is joined to this as it is a property of the
relationship ‘Completes’
(a) Attribute on a relationship
Question
Reference
Reference