TYPES OF ATTRIBUTES
SIMPLE ATTRIBUTE
An attribute that can not be further divided into
smaller parts and represents the basic meaning is
called a simple attribute.
For example, ‘First Name’, ‘Last
Name’, ‘Age’ attributes of a STUDENT
entity represent a simple attribute .
COMPOSITE ATTRIBUTE
An attribute that can be further divided into smaller
units and each individual unit contains a specific
meaning.
For example, The Name attribute of STUDENT entity
can be sub-divided into First Name, Last Name and
Middle Name.
SINGLE VALUED ATTRIBUTE
Attributes having a single value for a particular
entity.
For example, Age is a single valued attribute of a
STUDENT entity.
MULTI VALUED ATTRIBUTE
Attributes that have more than one values for a particular
entity is called a multi valued attribute. Different
entities may have different number of values for these
kinds of attributes.
For example, Phone Number attribute for a STUDENT
entity may be a multi valued attribute.
STORED ATTRIBUTE
Attributes that are directly stored in the database
are called stored attributes.
For example, Birth Date attribute of a STUDENT entity.
DERIVED ATTRIBUTE
Attributes that are not stored directly but can be
derived from stored attributes are called derived
attribute.
For example, The Age of a STUDENT entity can be derived
from the current date and the Birth Date of the student.
Similarly Total Salary of a PERSON entity can be derived
from Basic Salary and Provident Fund, etc.
STRONG
ENTITY SETS
An entity set containing a key attribute are called
strong entity types or regular entity types.
For example, The STUDENT entity has a key attribute
Roll No which uniquely identifies it, hence is a strong
entity set.
WEAK ENTITY SETS
An entity set may not have sufficient attribute to
form a primary key. Entity types that do not contain
any key attributes, and hence can not be identified
independently are called weak entity sets.
A weak entity can be identified uniquely
only by considering some of its attributes in conjunction
with the primary key attribute of another entity,
which is called the identifying owner entity.
|