×

What is RDBMS?

To discuss the Relational Database Management System, there are some terms and concepts you need to know.

Database

Any collection of related information is called a database. The phone book is also a database.

Database Management System

Software programmed to enable the user to create and maintain a database. We can implement create, read, update, and delete operations on the information stored in a database using DBMS.

Types of Databases

There are primarily two types of databases based on the structure in which the information is stored.

  1. Relational Database 
  2. Non-Relational Database

Relational Database: The data is stored in one or more tables. Each table has rows and columns. A unique key identifies each row. Structured Query Language (SQL) handles the Relational Database and its information.

Non-Relational Database: Data is stored in anything but not in traditional tables. 

Structured Query Language

SQL is the standardized language used to interact with RDBMS. It is used to implement CRUD operations. It is used to define tables and structures and manipulate the data stored in the database.

Note: SQL performed for a relational database is not necessarily portable and may require certain modifications.

Difference between RDBMS and DBMS

CharacteristicsRDBMSDBMS
UsersMultiple users can access the data using RDBMS at the same time.One user can access the data at a time.
RequirementsHigh-performance software and hardwareNo such requirement
DataCan handle a very large amount of dataCan handle comparatively less amount of data
Data definitionData is stored in a hierarchical formatData is stored in the form of tables
ACID propertiesMaintains the atomicity, consistency, isolation and durability of the dataDoes not necessarily maintains these properties
NormalizationIt is possible to normalize the dataWe cannot normalize the data stored in the DBMS
Distributed DatabaseIt supports distributed database.It does not support distributed database.
Recovery MechanismIt has a backup and recovery mechanismNo such recovery or backup mechanism

ACID properties in relational database management systems

From what we have discussed earlier, we know that RDBMS maintains the atomicity, consistency, isolation, and durability of its data. Now let us discuss all these four data characteristics stored in RDBMS one by one.

The relational database management system describes these four properties to maintain the quality of data stored.

  • Atomicity: It specifies that whatever may be the operation that is being performed on the database either will be fully executed on the database or will not be executed at all.
  • Consistency: It specifies whenever the change is made on the database data, that change should be preserved, which means when an operation is successfully implemented on the database, that change should be committed in the memory too. 
  • Isolation: It is the property that allows concurrent access to data in the RDBMS. It specifies that change in one data should not affect the value of any other data in the relational database. 
  • Durability: It ensures permanency. This property ensures that the result obtained after the successful execution of the operation is written in the memory. A database management system that cannot store any change in the information will be of no use.

Working on Relational Database Management System

As discussed earlier, relational database stores the data in the tables, and those tables are linked to each other by various links. Each table has a key that can be used to uniquely identify all the table's entities. This unique key is assigned as the primary key of the particular table. The table consists of rows and columns where rows are the horizontal entities are store specific information and columns are vertical entities that specify all types of information about a particular field. Certain constraints on these tables must be considered while constructing and using the tables.

The constraints are as follows:

  • Domain constraint – This constraint is similar to defining a data type for a variable in the programming languages, the difference is that this data type applies to all the values that can be entered in the field for which this constraint is applied. Datatypes can be strings, a limited range of integers or dates, Boolean etc.
  • Entity Integrity Constraint – This constraint is only applicable to the primary key, whenever a key is defined as the primary key of the table; the user can no longer a null value in that field.
  • Referential Integrity Constraint – This constraint allows the user to increase the complexity of the schema, it is crucial to normalise the data and make the structure of the RDBMS more realistic. It acts as a medium of communication between different tables in the schema. It requires a foreign key that can either have a value of a Primary key of another table or a NULL value.
  • Key Constraint- Each relationship should have an attribute having unique values for all the entities present in the relationship. It is necessary to have a primary key for the table in the RDBMS.
  • Not null- This constraint is very useful when applied on a necessary field, the user is not allowed to enter NULL as the value for the column. It will accept NULL as the value of that attribute and will display an error.

Components of Relational Database Management System

Table 

It represents a relationship in the relational database management system. It is the data object that allows the user to store data. It is the most important component of the RDBMS that stores other data objects inside it. Many tables associated together form the structural schema of the RDBMS. A particular table can contain all the related information about an entity. It is the simplest structure to store data in the relational database management system.

For example, let's look at this employee table that contains all the information about the employees in an organization.

EMPLOYEE_IDNameAGESALARY
1John2520000
2James2520000
3Alice2715000
4Robert3240000
5David31NULL

Field

It is a component of the table; in layman’s terms, the table's column is called a field of the table. It is an entity of the table that stores the values for a specific entity's attribute. In the above employee table, there are four fields. They are EMPLOYEE_ID, Name, Age, and Salary. By referring to an employee's field, we can get the corresponding value of that particular attribute.

Record 

It is responsible for holding all the attribute values of a particular entity in the table. It is the horizontal component of the table. In layman’s terms, it is the row of the table. By referring to the particular row, one can find all the related information about a particular entity stored in the relational database management system.

Example: Below is an example of a record from the above Employee table.

1John2520000

Null Values 

When the user does not want to enter any value in the table, the relational database management system provides an option to the user to store that value as NULL. It does not mean 0 or the field contains space. It is used to show a lack of knowledge about the field value. 

Example, In the above Employee table, the salary of David is stored as NULL; storing 0 would have caused confusion, and it would have provided the wrong information. The NULL does not have any data type of its own and can be used for any attribute.

5David31NULL

Related Topics

Relational algebra in DBMS

Relational algebra in DBMS Relational algebra is a procedural query language used to retrieve the data from a database in a different way. It works on the relational model. It performs...

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

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.

Database for library management system

The database can be considered the container where the data or information can be stored electronically in a computer system. Most mobile applications and websites run our day-to-day activities by...

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

Disavantages of RDBMS

RDBMS offers many features when handling the data, but it also has certain limitations that can be overcome by choosing an alternative data model. The limitations of the Relational Data...

3 minutes read.

DBMS Keys: Primary, Super, Candidate, Foreign

In database management system, keys play an important role which is used for identifying unique records by the combination of one or more fields in the database table. Keys also allows you to...

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

How to draw ER-Diagram in DBMS?

Entity Relationship Diagrams, or ERDs, are diagrams that assist you in visualizing your database design. An ERD, also called anER diagram or ER model,describes data and how parts of the data interact. ERDs are crucial in database architecture and projects that call for...

9 minutes read.

ER Diagram for Company Database in DBMS

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

7 minutes read.

Generalization in DBMS

Generalization in DBMS In the database management system, generalization is a concept combining the common attributes of two or more lower-level entity and form a new higher level with the common...

3 minutes read.

Relational Integrity Constraints

Relational Integrity Constraints are the set of rules that can be used to maintain the data integrity during an insert, delete and update operations into a table. These constraints are checked in the...

2 minutes read.

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.

Functional Dependencies

Functional Dependencies (FD) in the relational database management system occurs when one attribute in a relation uniquely determines other attribute in that relation. It describes the relation between the attributes. The term functional...

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

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.

DBMS Data Independence: Logical and Physical

Data Independence in DBMS: Data independence is a concept of DBMS which alters the schema of the database at one level of the database system without altering the schema definition...

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

Normalization in DBMS: 1NF, 2NF, 3NF, BCNF & 4NF with Examples

Normalization is a technique of organizing the data in the database. It is a systematic approach which is used to remove or reduce data redundancy in the tables and remove the...

7 minutes read.

DBMS Architecture

Architecture of Database Management System DBMS architecture helps in development, implementation, design, and maintenance of a database that store and organize information for agencies, businesses, and institutions. It is the base of any database...

2 minutes read.