Attributes in DBMS (original) (raw)

Last Updated : 8 Sep, 2025

An Attribute is a property or characteristic that describes an entity in a database. It provides specific information used to identify, categorize, and manage entities effectively. Without attributes, entities have no meaningful data.

**For example:

Screenshot-2024-03-23-232743

Types Of Attribute

There are 8 types of Attributes in DBMS.

1. Simple Attribute

Simple Attributes are indivisible properties that hold basic information about an entity, such as name, roll number, or age. They cannot be broken down further and are often used to build other types of attributes.

Let's understand this with the help of example:

Simple Attribute

Simple Attribute

2. Composite Attribute

A composite attribute is formed by combining two or more simple attributes. It is used to represent complex data structures, like a full name made of first and last names.

Let's understand this with the help of example:

Composite Attribute

Composite Attribute

3. Single Valued Attribute

A single-valued attribute contains only one value per entity instance. Mostly these attributes are used to provide the unique identity to the multiple instances of attributes.

Let's understand this with the help of Example:

Single Value Attribute

Single valued attribute

4. Multivalued Attribute

A multivalued attribute can have multiple values for one entity instance. Unlike single-valued attributes, it stores several values linked to the entity.

Let's Understand this with the help of Example:

Multi value Attribute

Multi-valued attribute

5.Key Attribute

A key attribute has a unique value for every entity and is used to identify it. It plays an important role in ensuring data is distinct in a database.

Let's Understand this with the help of Example:

Key Attributes

Key attribute

6. Derived Attribute

A derived attribute is an attribute calculated from other attributes in the database and is not physically stored. Its value is obtained using existing data within the same database.

Let's understand this with help of Example:

Derived Attributes

Derived attribute

7. Stored Attribute

Stored attributes are physically stored in the database (unlike derived attributes). They can change (e.g., a student’s address), but they are stored directly, not calculated.. It stores permanent information that remains fixed throughout the entity’s lifetime.

Let's understand this with the help of example

Stored Attributes

Stored attributes

8.Complex Attribute

A complex attribute is a combination of composite and multivalued attributes. It can contain multiple levels of sub-attributes. Complex attributes can have an unlimited number of sub-attributes.

Let's understand this with the help of Example:

Complex Attributes

Complex attributes