Types of Attributes in ER Model
Last Updated :
07 Jun, 2025
In DBMS, an attribute is a characteristic of an entity that is used to describe an entity. Essentially, it is a column in a table that holds data values. An entity may contain any number of attributes. One of the attributes is considered as the primary key. In an Entity-Relation model, attributes are represented in an elliptical shape.
Example: Student has attributes like name, age, roll number, and many more. To uniquely identify the student, we use the primary key as a roll number.
Types of Attributes
There are different types of attributes as discussed below-
- Simple Attribute
- Composite Attribute
- Single-Valued Attribute
- Multi-Valued Attribute
- Derived Attribute
- Complex Attribute
- Stored Attribute
- Key Attribute
- Null Attribute
- Descriptive Attribute
Let's discuss each one by one:
1. Simple Attribute
An attribute that cannot be further subdivided into components is a simple attribute.
Example: The roll number of a student, the ID number of an employee, gender, and many more.
Simple Attribute2. Composite Attribute
An attribute that can be split into components is a composite attribute.
Example: The address can be further split into house number, street number, city, state, country, and pin code, the name can also be split into first name middle name, and last name.
Composite Attribute3. Single-Valued Attribute
The attribute which takes up only a single value for each entity instance is a single-valued attribute.
Example: The age of a student, Aadhar card number.
Single-Valued4. Multi-Valued Attribute
The attribute which takes up more than a single value for each entity instance is a multi-valued attribute. And it is represented by double oval shape.
Example: Phone number of a student: Landline and mobile.
Multi-valued5. Stored Attribute
The stored attribute are those attribute which doesn't require any type of further update since they are stored in the database.
Example: DOB(Date of birth) is the stored attribute.
Stored-attribute6. Derived Attribute
An attribute that can be derived from other attributes is derived attributes. And it is represented by dotted oval shape.
Example: Total and average marks of a student, age of an employee that is derived from date of birth.
Derived-attribute7. Complex Attribute
Those attributes, which can be formed by the nesting of composite and multi-valued attributes, are called "Complex Attributes". These attributes are rarely used in DBMS(DataBase Management System). That's why they are not so popular.
Example: Address because address contain composite value like street, city, state, PIN code and also multivalued because one people has more that one house address.
Complex-attributeRepresentation
Complex attributes are the nesting of two or more composite and multi-valued attributes. Therefore, these multi-valued and composite attributes are called 'Components' of complex attributes.
These components are grouped between parentheses '( )' and multi-valued attributes between curly braces '{ }', Components are separated by commas ', '.
For example: let us consider a person having multiple phone numbers, emails, and an address.
Here, phone number and email are examples of multi-valued attributes and address is an example of the composite attribute, because it can be divided into house number, street, city, and state.
Complex attributesComponents
Email, Phone number, Address(All are separated by commas and multi-valued components are represented between curly braces).
Complex Attribute: Address_EmPhone(You can choose any name).
8. Key attribute
Key attributes are those attributes that can uniquely identify the entity in the entity set.
Example: Roll-No is the key attribute because it can uniquely identify the student.
9. Null Attribute
This attribute can take NULL value when entity does not have value for it.
Example: The 'Net Banking Active Bin' attribute gives weather particular customer having net banking facility activated or not activated.
For bank which does not offer facility of net banking in customer table 'Net Banking Active Bin' attribute is always null till Net banking facility is not activated as this attribute indicates Bank offers net banking facility or does not offers.
10. Descriptive Attribute
Descriptive attribute give information about the relationship set example given below. Here Start Date is the descriptive attribute of Manages relationship.
Descriptive-Attribute
Similar Reads
Multivalued Attributes in DBMS Attributes are significant in DBMS as it deals with the organization and formatting of data. Of all the attributes, multivalued attributes are somewhat different and they have to be understood properly. To help us understand the above idea in the subsequent sections of this article, we will also exp
6 min read
Attributes of Data Warehouse A data warehouse is meant for only query and analysis rather than transaction processing. The data warehouse is essentially subject-oriented, non-volatile, integrated, time-variant, and consists of historical data stored over long periods of time. A blueprint of BI and data mining algorithms. Data m
3 min read
Structural Constraints of Relationships in ER Model Structural constraints, within the context of Entity-Relationship (ER) modeling, specify and determine how the entities take part in the relationships and this gives an outline of how the interactions between the entities can be designed in a database. Two primary types of constraints are cardinalit
5 min read
Types of Relationship in Database A relationship in a DBMS exists when a variable has a connection with the properties stored in different tables. Such relationships help the organization of entities intertwined with each other, ultimately enabling efficient data processing. They're exhibited usually via keys in a table, which is ei
4 min read
Attributes and its Types in Data Analytics In this article, we are going to discuss attributes and their various types in data analytics. We will also cover attribute types with the help of examples for better understanding. So let's discuss them one by one. What are Attributes?Attributes are qualities or characteristics that describe an obj
4 min read
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 ent
6 min read