Skip to content
Reference notes from the interactive SQL course, which covers the same ground with a live SQL console, graded challenges and a final exam.
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_id → authors.id (each book has one author)
  • orders.book_id → books.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.

All 43 lessons in SQL — The Interactive Visual Notebook
  1. Introduction to SQL
  2. Why SQL Matters
  3. What is an RDBMS?
  4. Tables, Rows, and Columns
  5. SQL Command Categories (DDL/DML/DCL/DQL)
  6. SELECT and FROM
  7. Aliases and Expressions
  8. DISTINCT and Sorting
  9. Limiting Results
  10. Query Execution Order
  11. WHERE and Comparison Operators
  12. Combining Conditions — AND, OR, NOT
  13. IN, BETWEEN, and LIKE
  14. Working with NULL
  15. Aggregate Functions
  16. GROUP BY
  17. HAVING — Filtering Groups
  18. Grouping in Practice
  19. INNER JOIN
  20. LEFT JOIN and Outer Joins
  21. Self Joins
  22. Cross Joins and Join Pitfalls
  23. UNION, INTERSECT, and EXCEPT
  24. Subqueries
  25. EXISTS and Correlated Subqueries
  26. Common Table Expressions (WITH)
  27. Recursive CTEs
  28. Window Functions — The OVER Clause
  29. Ranking Functions
  30. Frames and Running Totals
  31. LAG and LEAD
  32. Window Function Patterns
  33. What an Index Is
  34. Reading a Query Plan
  35. Designing Indexes
  36. Writing Queries an Index Can Use
  37. Transactions and ACID
  38. Isolation Levels
  39. Locks and Deadlocks
  40. Choosing Data Types
  41. Constraints and Keys
  42. Normalisation
  43. Designing a Schema