getting-started

What is an RDBMS?

The "R" in SQL — relational databases, what they are, and why they dominate.

What is an RDBMS?

RDBMS stands for Relational Database Management System — the technology behind SQL.

The "relational" model in one sentence

Data is stored in tables, and tables can reference each other.

That's it. Two ideas. Everything else builds on top.

Example — a tiny bookstore

Imagine an online bookstore. You'd model the data with three tables:

authors

idnamebirth_year
1Jane Austen1775
2Toni Morrison1931

books

idtitleauthor_idprice
1Pride & Prejudice112.99
2Sense & Sensibility111.50
3Beloved214.00

orders

idbook_idcustomer_emailordered_at
11a@b.com2026-03-12
23a@b.com2026-03-15

Three tables, but they're connected:

  • books.author_idauthors.id (each book has one author)
  • orders.book_idbooks.id (each order is for one book)

That's the relational part. The connections (called foreign keys) let SQL answer questions like "show me every customer who ordered a Jane Austen novel" with a single query.

What an RDBMS does for you

Beyond just storing data, an RDBMS:

  1. Enforces structure — every row in authors MUST have an id and a name. No surprises.
  2. Enforces relationships — you can't insert a book with author_id = 99 if there's no author 99. The database refuses.
  3. Handles concurrency — 1000 users buying books simultaneously? The RDBMS keeps them from corrupting each other's data via transactions.
  4. Optimizes queries — when you write WHERE author_id = 1, the RDBMS uses an index to find matches in milliseconds even with 10 million books.
  5. Persists durably — once committed, data survives crashes, power loss, restarts.

Popular RDBMS systems (you'll see these in job postings)

NameTypeWhere it shines
PostgreSQLOpen-sourceDefault modern choice; powerful + free
MySQLOpen-sourceWeb apps, WordPress, most "first DB" tutorials
SQLiteEmbeddedMobile apps, browser storage, this very tutorial's sandbox
MS SQL ServerMicrosoftWindows enterprise; .NET stack
OracleEnterpriseBanks, telcos, legacy enterprise
MariaDBOpen-source (MySQL fork)Drop-in MySQL replacement

All of them speak SQL. The dialect differs slightly (Postgres has DATE_TRUNC, MySQL has DATE_FORMAT) but 80% of SQL is identical across all of them.

What's NOT an RDBMS

For completeness — these systems exist but they're NOT relational:

  • MongoDB — document store (stores JSON-like blobs, not tables)
  • Redis — key-value cache (no relations)
  • Neo4j — graph database (nodes + edges)
  • Cassandra / DynamoDB — wide-column NoSQL (massive scale, no joins)

These have their place. But for 95% of real applications, an RDBMS is the right answer.

Next up

In the next lesson, Tables, Rows, and Columns, we'll get specific about the building blocks — what each one is, what a NULL value means, and the vocabulary every SQL conversation uses.

What is an RDBMS? — SQL Mastery — From Zero to Joins