×

Attributes in DBMS

What is Attribute?

An attribute is an element in the database management system that describes the property or certain characteristics of the database entity. It is a crucial element of the database as it provides information about the entity of the databases.

In a relational database management system, the data is represented in tables. We can describe these tables as electronic spreadsheets consisting of various rows and columns.

The entity's attribute is represented in the corresponding column of the table. It describes the value corresponding to the category mentioned in the column. The row of the relational table is called a tuple. A tuple represents the entire data of a single entity. Attributes are the characteristics stored in the tuple that distinguish between the different entities by specifying the value of the characteristic that is unique to it.

An attribute is any non-null cell of a column and is allowed to contain only a single type of value in the column. For example, in the case of a bill, the attributes can be the list of objects, their respective prices, the date of purchase. It is impossible to store a date as an attribute in the price column. 

Types of Attributes

Various attributes can be used to describe the property of the entity in the relational database. These are:

  • Single-Valued Attribute
  • Composite Attribute
  • Multivalued Attribute
  • Primary Attribute
  • Derived Attribute

Single-valued Attribute: As the name itself suggests, these are the most basic type of attributes that can have only value to it for an entity. For example, the First name is an attribute that will only have value.

Attributes In DBMS

Composite Attribute: These attributes consist of multiple single-valued attributes. For example, a Name is a composite attribute formed by combining three attributes. These attributes are First Name, Middle Name, and Last Name.

Multivalued Attribute: These attributes allow the user to store multiple different values under the same category for a single entity. For example, Phone Number, a single entity can have multiple phone numbers.

Attributes In DBMS

Primary Attribute or Key Attribute: The value stored under this attribute helps the user uniquely identify each entity present in the table. For example, the list of students for the college can have the student's admission number as the key attribute for the table. The table with only one primary attribute is regarded as a strong entity. In contrast, it is possible to have more than one key attribute in the table. For example, if that table has both registration number and admission number as an attribute. Both these attributes are the key attribute of the table.

Attributes In DBMS
  • Derived Attribute: These attributes can be determined using the other attribute of the entity. The user can derive them by applying certain fixed steps or formulas to certain identity attributes. For example, the age of a person can be represented as the attribute of that person, but at the same time, we can easily determine the age if we know the Date of Birth of the entity. In the case of the bill, we can determine the VAT applied to the product if we know the marked price of the product and the final price of the product.
Attributes In DBMS

Related Topics

Conversion of ER Diagram into Relational Model

After designing the Entity-Relationship diagram, you need to convert it into tables in the relational model. Because the relational model can be easily implemented by the Relational DBMS like Oracle, MySQL, etc....

2 minutes read.

Three Schema Architecture of DBMS

The three schema architecture describes how the data is represented or viewed by the user in the database. This architecture is also known as three-level architecture and is sometimes called...

3 minutes read.

DBMS Generalization, Specialization, and Aggregation

DBMS Generalization Generalization is a bottom-up approach in which the common attributes of two or more lower-level entities combines to form a new higher-level entity. In generalization, the generalized entity of higher level can also...

3 minutes read.

Relational Algebra in DBMS

Relational Algebra is a widely used procedural query language, which takes instances of one or more relation as an input and generates a new relation as an output. It uses a different...

6 minutes read.

Meta Data in DBMS

Metadata: Metadata is simply described as information about information. It indicates that the data is described as well as its context. It makes data easier to find, interpret, and organize. I'll...

4 minutes read.

Atomicity in Database Management System

In Database Management Systems, the term "atomicity" refers to the idea that database transactions are atomic units of work. This means that either all of the operations within a transaction...

10 minutes read.

Why we need Distributed Database Management System

Assuming there is a very strong single machine having properties like: Heaps of memory.Gigantic measure of dependable stockpiling with very quick I/O.Incredible handling rate and processing power (10s, 100s and might...

4 minutes read.

DBMS Examples

Introduction to DBMS A database management system (DBMS) is a software application that is designed to manage and organize data stored in a database. It is responsible for storing, retrieving, and...

4 minutes read.

Data Abstraction in DBMS

Introduction Data abstraction is a fundamental concept in database management systems (DBMS). It refers to the process of hiding the details of how data is stored and retrieved from the user,...

3 minutes read.

Founder of DBMS

The first database management system was built to automate the business of the General Electric Company. It was built by a small group of programmers. The Integrated Data Store IDS...

4 minutes read.

ER Diagram for Banking System in DBMS

Entity Relationship Diagram Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

3 minutes read.

Secondary Key in DBMS

What are Keys? Keys in DBMS are the attributes or set of attributes that uniquely identify a row in a set of relations. A table (relation) can have a column or...

3 minutes read.

Foreign key in DBMS

Foreign key in DBMS: The Foreign key is a field or the set of fields in the relational database table, which points to the existing field in another table. It...

2 minutes read.

Cardinality in DBMS

Cardinality in DBMS Cardinality is the relationship between two or more entities (table). It shows how all the entities are connected. In DBMS, all the entities and tables are interconnected with...

2 minutes read.

Red-Black Tree Visualization in DBMS

Introduction to Red Black Tree A red-black tree is a self-balanced binary search tree with an extra bit per node, usually read as a color (red or black). The tree is...

4 minutes read.

Red-Black Tree Properties in DBMS

What is a Red-Black Tree? A red-black tree is a kind of self-balancing binary search tree. The extra bit that each node keeps denoting "color"-either "red" or "black"-is needed to keep...

3 minutes read.

Domain in DBMS

Constraints: Constraints in DBMS are a set of guidelines that guarantee that authorized users who modify the database do not alter the consistency of the data. Constraints are expressed in DDL...

3 minutes read.

Advantages of Threaded Binary Tree in DBMS

We know that every node in a binary tree contains both its data value and the address pointers for its left and right children. A null pointer is used to...

3 minutes read.

Fundamentals Of Distributed DBMS

Fundamentals of DDBMS Here we are going to talk about the Fundamentals of DDBMS. But first, we need to know about Distributed databases to understand the Distributed Database Management System. Distributed Database: It is...

4 minutes read.

Applications of DBMS

There are various fields where a database management system is used. Following are some applications which make use of the database management system: 1. Railway Reservation System: In the railway reservation...

7 minutes read.