×

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

B-Tree Insertion in DBMS

A B-tree is a special type of m-way tree, commonly used for disk access. A B-tree of order m can have at most m-1 keys and m descendants. B-trees are...

4 minutes read.

Domain Constraints in DBMS

Introduction about DBMS:- DBMS stands for DataBase Management System. DBMS(DataBase Management System) is a type of software by which we can save and retrieve the user's data with the security process....

3 minutes read.

Advantages of RDBMS

The relational database management system collects related data stored in tabular format. The data is stored in rows and columns, where rows usually represent the individual entity of the collected...

6 minutes read.

ER Diagram for University Database in DBMS

What is an ER diagram? ER diagram, short for Entity Relationship Diagram, also known as ERD, is a diagram that shows the relationships of a set of entities stored in a...

9 minutes read.

Defference between Database and Data Warehouse

Database A database is a collection of related information is called a database. It has some elements that can be mapped to real-world objects. It is designed in such a manner...

4 minutes read.

Candidate Key in DBMS

Candidate key in DBMS: The candidate key is a single column or the set of columns that uniquely identifies the rows of data in the database table. It is a...

2 minutes read.

Difference between DBMS and RDBMS

Database Management System A DBMS is system software which is used to store and manage the data in the database. It was introduced in 1960 for storing the data or information. This system allows...

3 minutes read.

Schedule in DBMS

Schedule A sequence of statements that specify the sequential order in which the statements of concurrent transactions are executed. The transaction will get committed when it executes the instructions successfully without any...

4 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.

Fragmentation in Distributed DBMS

Fragmentation is a course of isolating the entire or full information base into different sub tables or sub relations with the goal that information can be put away in various...

4 minutes read.

Disadvantages of DBMS

Disadvantages of DBMS With the vast list of advantages, there are some following disadvantages or limitations of the database management system. 1. High Cost The high cost of software and hardware is the...

2 minutes read.

Integrity Constraints in DBMS

Integrity constraints in DBMS (Database Management System) are used to ensure the accuracy and consistency of data in a database. They are a set of rules that define the allowed...

1 minute 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.

Advantages and Disadvantages of DBMS

We need to understand what is Database Management System before discussing the advantages and disadvantages of the database management system, and also, need to understand what were the technologies and...

5 minutes read.

DBMS View: Read, Update, Create and Drop

View in DBMS: The View is a logical or virtual table that allows users to view or manipulate parts of the table. View is also a table which consists of...

2 minutes read.

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.

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.

Serializability in DBMS

Serializability in DBMS Serializability is the concept in a transaction that helps to identify which non-serial schedule is correct and will maintain the database consistency. It relates to the isolation property of transaction in...

3 minutes read.

Relational DBMS Concepts

What is RDBMS? RDBMS stands for Relational Database Management System.The relational database management system is a type of DBMS that stores information in the form of related tables and uses a...

3 minutes read.

Difference between File System and DBMS

What is File Management System? A file management system is a collection of programs that manage and store data in files and folders in a computer hard disk. A file management...

9 minutes read.