×

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

What is Non-Relational Database

Databases can be sorted as either relational or non-relational. Non-relational data sets are now and again alluded to as "NoSQL," which represents Not Only SQL. The principal difference between these...

4 minutes read.

Types of Data Abstraction in DBMS

What Is Data Abstraction? To ship an email, you want to know the address. But to send the email, you don't need to see where the email is physically stored. You...

6 minutes read.

DBMS Joins: Inner, Outer, Natural and Self Join

Joins are the combination of related tuples from the two different relations or tables into a single type. It is similar to the Cartesian product except the fact that in Cartesian product operation,...

4 minutes read.

Redundancy in Database Management System

Redundancy in a database management system (DBMS) refers to the duplication of data within the database. This duplication can occur in multiple ways, such as having multiple copies of the...

13 minutes read.

Er Diagram Symbols and Notations 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...

6 minutes read.

Components of an ER Diagram

An ER Diagram consists of the following components: Entity AttributesRelationships 1. Entity An entity may be an object, place, person, or an event which stores data in the database. In an entity-relationship diagram, an entity...

4 minutes read.

Redundancy in DBMS

Data redundancy is a situation that is created in the database in which the same amount of data is stored in two different places. The different places are found in a...

3 minutes read.

DBMS Schema

Schema It is a physical representation of data that appears in the database management system. In simple words, a schema is the structure of any database.It defines how the data is stored...

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.

Concurrent Execution of Transaction

In the transaction process, a system usually allows executing more than one transaction simultaneously. This process is called a concurrent execution. Advantages of concurrent execution of a transaction Decrease waiting time or...

4 minutes read.

View Serializability in DBMS

View Serializability It is a type of serializability that can be used to check whether the given schedule is view serializable or not. A schedule called as a view serializable if it is view...

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

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.

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.

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.

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.

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.

Deadlock in DBMS

Deadlock in DBMS A deadlock is an unwanted condition in which two or more transaction are waiting indefinitely for one another to give up locks. It is said to be one of the...

3 minutes read.

Advantages of B-Tree in DBMS

A self-balancing search tree is the B-Tree. It is assumed that everything is in the main memory in most other self-balancing search trees (such as AVL and Red-Black Trees). We must...

3 minutes read.

Data Models in DBMS

Data Models in DBMS Data models are the models explaining the logical structure of the database systems. They describe the entities, attributes, and the relationship among the data elements of the...

8 minutes read.