Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

MODELLING DATA OBJECT COURSE

Simple Attributes and Composite Attribute


Composite Attribute:
Definition:
 Attributes that can be divided into sub-parts like a tree structure
 Required to store detailed information of an attribute.
 This attribute have its own attribute
Representation:

Attribute having child attribute

Symbol:
 
Example:
Composite Attribute: studentName, address, streetAddress

Simple attributes:
Definition:

Attributes that cannot be divided into sub-parts like a tree structure


MODELLING DATA OBJECT COURSE

For Example:

The red-pointer indicates simple attributes

Stored and Derived Attribute


MODELLING DATA OBJECT COURSE

Stored Attribute:
Definition:
 Attributes stored in database can derived some other attribute.
 Other attribute values can be found using stored attribute.
Representation:

It is represented by using a circle with the stored attribute name


within it.

Symbol:

For Example:
Stored Attribute: dob, as this attribute can derive student age doing some calculations
MODELLING DATA OBJECT COURSE

Derived Attribute:
Definition:
 Attributes that depends on another attribute using some operations.
 Required to show that the attribute value can be found using other attribute value.
Representation:

Shown by dashed oval.

Symbol:
For Example:
Derived Attribute: age, as student age can be derived from date of birth attribute (dob)

Single Valued and Multivalued Attributes


Single valued attributes:
Definition:
MODELLING DATA OBJECT COURSE

Attributes that can have only one single value

Required to show that it cannot contain multiple value of an attribute.


Representation:

Attribute will contain single value only.

Symbol:

Multi-valued  attributes:
Definition:
 Attributes that can have more than one value
 Required to show that it can contain multiple value.
MODELLING DATA OBJECT COURSE

Representation:

Shown by dual oval.

Symbol:
For Example:
Multivalued Attribute: 
Phone number,  student  entity is considered to have more than one contact number.

You might also like