Single Valued Attribute

  • The attribute with only a single value is known as a single-valued attribute. These attributes have a single value for each instance of a given entity.
  • Mostly these attributes are used to provide the unique identity to the multiple instances of attributes.

Example

  • In the given example, we know that the DOB attribute will have only one value. So we can say that the DOB attribute is nothing but a single Valed attribute and it cannot have multiple attributes.
  • Here roll_no and name will also have mostly one value only.
  • We can say that all 3 attributes of the student are single-valued.

Single valued attribute

Attributes in DBMS

Attributes are properties or characteristics of an entity. Attributes are used to describe the entity. The attribute is nothing but a piece of data that gives more information about the entity. Attributes are used to distinguish one entity from the other entity. Attributes help to categorize the entity and the entity can be easily retrieved and manipulate the entity. Attributes can help the database to be more structural and hierarchical. An entity with no attribute is of no use in the database.

Similar Reads

Example

Let’s take the student as an entity. Students will have multiple attributes such as roll number, name, and class. These attributes are used to describe the student in more detail....

Types Of Attribute

There are 8 types of attributes in DBMS....

Simple Attribute

Simple attributes are those attributes that cannot be divided into more attributes. Simple attributes state the simple information about the entity such as name, roll_no, class, age, etc. Simple attributes are widely used for storing information about the entity....

Composite Attribute

When 2 or more than 2 simple attributes are combined to make an attribute then that attribute is called a Composite attribute. The composite attribute is made up of multiple attributes. After combining these attributes, the composed attributes are formed. Complex attributes are used where data is complex and needs to be stored in a complex structure....

Single Valued Attribute

The attribute with only a single value is known as a single-valued attribute. These attributes have a single value for each instance of a given entity. Mostly these attributes are used to provide the unique identity to the multiple instances of attributes....

Multivalued Attribute

An attribute which can have multiple values is known as a multivalued attribute. Multivalued attributes have multiple values for the single instance of an entity. Keu of entity is associated with multiple values. It does not have only one value. It is the opposite of the single-valued attribute....

Key Attribute

The attribute which has unique values for every row in the table is known as a Key Attribute. The key attribute has a very crucial role in the database. The key attribute is a distinct and unique characteristic of the entity that can be used to identify the entity uniquely....

Derived Attribute

The attribute that can be derived from the other attributes and does not require to be already present in the database is called a Derived Attribute. Derived attributes are not stored in the Database directly. It is calculated by using the stored attributes in the database....

Stored Attribute

If the data of the attribute remains constant for every instance of entity then it is called a Stored Attribute. The value of the attribute present in the database does not get updated and it remains constant once it is stored. These attributes are used to store permanent information about an entity which will remain constant throughout the lifetime of the entity....

Complex Attribute

When multi-valued and composite attributes together form an attribute then it is called a Complex attribute. Complex attributes can have an unlimited number of sub-attributes....

Frequently Asked Questons on Attributes in DBMS – FAQs

Why attributes are used?...