Free tutorials & notes in Hindi & English · Clean code examples · Mobile friendly learning
MySQL + SQL · Lesson 1

Rdbms Tutorial

What is RDBMS?

RDBMS (Relational Database Management System) is a database management system based on the relational model proposed by E. F. Codd in 1970. It stores data in tables (rows and columns) and lets you access and relate that data using SQL. MySQL, Oracle and PostgreSQL are all RDBMS.

A plain DBMS just stores data. An RDBMS goes further: it stores data in related tables, enforces rules (constraints), and keeps data accurate and consistent. This is why almost every real application — banking, e-commerce, school management — runs on an RDBMS.

How Data is Stored

Data is stored in a table (also called a relation). Each row is one record and each column is one field. Here is a simple students table:

roll_no (PK)nameclassmarks
1Aman1088
2Priya1092
3Ravi1076
SQL
CREATE TABLE students (
    roll_no INT PRIMARY KEY,
    name    VARCHAR(50),
    class   INT,
    marks   INT
);

Keys in RDBMS

Keys uniquely identify rows and connect tables. They are the heart of the relational model.

KeyMeaning
Primary KeyUniquely identifies each row; cannot be NULL or duplicate.
Foreign KeyA column that refers to the primary key of another table, creating a relationship.
Candidate KeyAny column that could serve as a primary key.
Composite KeyA primary key made of two or more columns together.
💡 Relationship example

An orders table can have a student_id foreign key pointing to students.roll_no. That link is what makes the database "relational".

ACID Properties

An RDBMS guarantees reliable transactions through ACID:

PropertyMeaning
AtomicityA transaction runs fully or not at all.
ConsistencyThe database moves from one valid state to another.
IsolationConcurrent transactions do not interfere with each other.
DurabilityOnce committed, data survives even a power failure.

DBMS vs RDBMS

PointDBMSRDBMS
Data storageFiles or single structureTables (relations)
RelationshipsNot supported wellSupported via foreign keys
Keys / constraintsLimitedPrimary/foreign keys, constraints
ACID transactionsUsually noYes
ExampleFile systems, XMLMySQL, Oracle, PostgreSQL

Popular RDBMS Software

RDBMSBest for
MySQLFree, fast — web apps and learning
OracleLarge enterprise systems
SQL ServerMicrosoft technology stack
PostgreSQLAdvanced, open-source, standards-compliant

Codd's Rules (in short)

E. F. Codd defined 12 rules (numbered 0–12) that a system must follow to be a true relational database — covering how data must be stored in tables, accessed by SQL, and kept independent of physical storage. In practice, no RDBMS follows all 12 perfectly, but MySQL, Oracle and PostgreSQL follow most of them.

⚠️ Remember

The relational model was proposed by E. F. Codd in 1970 — a very common one-mark exam question.

Summary

  • RDBMS stores data in related tables and uses SQL (relational model by Codd, 1970).
  • Keys: primary (unique), foreign (links tables), candidate, composite.
  • ACID = Atomicity, Consistency, Isolation, Durability.
  • RDBMS adds relationships, constraints and ACID over a plain DBMS.
  • Examples: MySQL, Oracle, SQL Server, PostgreSQL.

Frequently Asked Questions

What is RDBMS?
RDBMS (Relational Database Management System) is database software based on the relational model that stores data in tables and lets you access and relate it using SQL. Examples include MySQL, Oracle and PostgreSQL.
What is the difference between DBMS and RDBMS?
A DBMS stores data, often in files, with little support for relationships. An RDBMS stores data in related tables, supports primary and foreign keys, constraints and ACID transactions.
Who proposed the relational model?
The relational model was proposed by E. F. Codd in 1970. He also defined the well-known 12 rules for a true relational database.
What are ACID properties?
ACID stands for Atomicity, Consistency, Isolation and Durability. These four properties ensure that database transactions are reliable even during failures.
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

💻 Live Code Editor

This page's programs are ready here — run them, edit them, and learn. No installation needed.
Powered by OneCompiler. The code loads into the editor automatically — press Run to see the output. If the editor does not open, open it in a new tab.