Lesson 7 of 60 – DBMS vs RDBMS
12%

DBMS vs RDBMS

DBMS and RDBMS are two important concepts in database management. DBMS stands for Database Management System, while RDBMS stands for Relational Database Management System.

An RDBMS is designed around the relational model, where data is organized into tables and relationships can be established between those tables.

Note: RDBMS is a type of DBMS that follows the relational model and commonly uses tables, keys, relationships, and constraints to organize data.

1. What is DBMS?

DBMS stands for Database Management System. It is software used to create, store, organize, retrieve, and manage data in a database.

A DBMS provides features for:

  • Storing data
  • Retrieving data
  • Updating data
  • Deleting data
  • Managing users
  • Controlling access
  • Maintaining database information

2. What is RDBMS?

RDBMS stands for Relational Database Management System. It is a database management system based on the relational model.

In an RDBMS, data is primarily organized into tables consisting of rows and columns.

Examples include:

  • MySQL
  • PostgreSQL
  • Oracle Database
  • Microsoft SQL Server

3. Simple Example of DBMS

Imagine a database system storing employee information. A DBMS can provide a way to store and retrieve the employee data.

The exact internal organization depends on the type of DBMS being used.

The main purpose is to provide software for managing stored data.

4. Simple Example of RDBMS

An RDBMS can organize employee information into a table.

employees

id | name  | department
---|-------|------------
1  | Rahul | IT
2  | Priya | HR
3  | Amit  | Sales

Additional tables can be related using keys.

5. Main Difference

The major difference is that an RDBMS follows the relational model, where data is organized into related tables.

DBMS RDBMS
Database Management System Relational Database Management System
General database management software Database management based on the relational model
May use different data organization approaches Organizes data primarily in tables
Relationships depend on the database model Supports relationships between tables
May have fewer relational features Provides relational features such as keys and constraints

6. Tables in RDBMS

Tables are a fundamental part of relational databases. Each table contains rows and columns.

For example:

students

id | name  | course
---|-------|--------
1  | Rahul | Python
2  | Priya | SQL
3  | Amit  | Java

Here, each row represents a student and each column represents a particular attribute.

7. Relationships in RDBMS

One of the important features of an RDBMS is the ability to represent relationships between tables.

For example, an application may contain:

  • students table
  • courses table
  • payments table

These tables can be connected using appropriate keys.

8. Primary Key in RDBMS

A primary key uniquely identifies each row in a table.

Example:

CREATE TABLE students (
    id INT PRIMARY KEY,
    name VARCHAR(100),
    course VARCHAR(100)
);

Here, id is the primary key.

9. Foreign Key in RDBMS

A foreign key can be used to connect a row in one table with a row in another table.

Example:

CREATE TABLE payments (
    id INT PRIMARY KEY,
    student_id INT,
    amount DECIMAL(10,2),
    FOREIGN KEY (student_id)
    REFERENCES students(id)
);

Here, student_id refers to the id column of the students table.

10. Data Integrity

RDBMS systems provide features that help maintain the correctness and consistency of data.

Examples include:

  • Primary keys
  • Foreign keys
  • UNIQUE constraints
  • NOT NULL constraints
  • CHECK constraints
  • DEFAULT values

11. DBMS vs RDBMS – Data Relationships

A relational database specifically represents data relationships through tables and keys.

For example:

Students
   |
   | student_id
   ↓
Payments

This allows applications to connect related information without storing all information in a single table.

12. SQL and RDBMS

SQL is widely used to communicate with relational database systems.

For example:

SELECT *
FROM students
WHERE course = 'Python';

The SQL statement requests students whose course is Python.

13. Popular RDBMS Examples

Some commonly used relational database management systems are:

RDBMS Example Use
MySQL Web applications and business applications
PostgreSQL Web applications, analytics, and enterprise systems
Oracle Database Enterprise database applications
Microsoft SQL Server Business and enterprise applications
SQLite Embedded and lightweight applications

14. Advantages of RDBMS

  • Organizes data into tables
  • Supports relationships between tables
  • Supports SQL queries
  • Provides data integrity features
  • Supports constraints
  • Supports transactions in systems that provide transactional engines
  • Provides user access control
  • Useful for structured data

15. Advantages of DBMS

  • Provides centralized data management
  • Helps store and retrieve data
  • Can provide access control
  • Can support data backup and recovery
  • Can reduce manual data management
  • Provides tools for database administration

16. DBMS vs RDBMS – Comparison

Feature DBMS RDBMS
Full Form Database Management System Relational Database Management System
Data Organization Depends on the database model Tables
Relationships Model-dependent Supported between tables
Primary Key Not a defining requirement of every DBMS Commonly used to uniquely identify rows
Foreign Key Depends on the database system/model Used to establish table relationships
SQL Depends on the database system Commonly uses SQL
Data Integrity Depends on the system Provides relational constraints and integrity features

17. DBMS vs RDBMS – Simple Example

Suppose a school needs to store student and course information.

A relational design may use separate tables:

students
---------
id
name

courses
---------
id
course_name

enrollments
-----------
student_id
course_id

The enrollment table can connect students with courses using keys.

18. Is Every DBMS an RDBMS?

No. DBMS is a broader term. An RDBMS is a specific type of database management system based on the relational model.

Remember:

DBMS = General database management system
RDBMS = Relational database management system

19. DBMS and RDBMS in Real Applications

RDBMS systems are commonly used when an application needs structured data, relationships, transactions, and SQL-based querying.

Examples include:

  • Banking systems
  • School management systems
  • Library management systems
  • E-commerce applications
  • Hospital management systems
  • Inventory systems
  • Accounting applications

20. DBMS vs RDBMS – Easy Way to Remember

Remember the relationship like this:

DBMS
  |
  |---- RDBMS
  |
  |---- Other database models/systems

RDBMS is therefore a category within the broader field of database management systems.

📌 Key Points

  • DBMS stands for Database Management System.
  • RDBMS stands for Relational Database Management System.
  • RDBMS is based on the relational model.
  • RDBMS primarily organizes data into tables.
  • Rows represent records and columns represent attributes.
  • Primary keys uniquely identify rows.
  • Foreign keys can establish relationships between tables.
  • RDBMS systems commonly use SQL.
  • MySQL, PostgreSQL, Oracle Database, and SQL Server are examples of RDBMS products.
  • DBMS is a broader term, while RDBMS specifically refers to relational database systems.

🧠 Quick Quiz

Question: What does RDBMS stand for?