LambdaLabTM
Databases & SQL · Class 12 · Database Concepts
databasesRDBMS⏱️ 7 min read

Relational Databases & RDBMS

The last lesson said a database is organised. It did not say how. There is more than one answer, but one has won so completely that the whole of your syllabus is about it: put the data in tables.

1A database made of tables

A relational database is a database in which the data is organised in the form of tables.

That is the entire idea. A table is the grid you already know from a register or a spreadsheet: columns across the top saying what each piece of data is, and one row per thing you are storing.

students — one row per student
idnamegradepercentdobcity
1099Veena1090.52010-11-20Singtam
2035Ravi1283.752008-08-13Gangtok
3033Tom864.252013-02-25Kolkata

Read across a row and you get one whole student. Read down a column and you get the same fact about everybody. Both directions are useful, and that is why the shape works.

Why the name “relational”?
Not because tables are related to each other — that comes later, with foreign keys. A table is a relation: it is the formal, mathematical name for this grid of rows and columns. So table and relation mean the same thing, and an exam may use either word.

2RDBMS — the software for them

Last lesson: a DBMS is software that creates, manages and stores a database. Narrow that to the relational kind and you get the word your syllabus uses:

An RDBMS is a DBMS application that helps us create, manage and store relational databases in digital form.

Relational Database Management System

These are the ones worth knowing by name:

MySQL

Free and open source. The one this course uses.

Oracle

Large commercial systems — banks, airlines.

MariaDB

A community fork of MySQL, very similar to use.

MS Access

Part of Microsoft Office, for small databases.

OpenOffice Base

The free equivalent of MS Access.

SQLite

Tiny. It is inside your phone right now.

DBMS vs RDBMS
DBMSRDBMS
How data is storedIn files, or any structure the software choosesIn tables — rows and columns
Relationships between dataNot necessarily supportedSupported, using keys
Keys and constraintsUsually not availablePrimary key, unique, not null and the rest
Typical sizeSmall amounts of dataSmall to very large
ExamplesA plain file store, early flat-file systemsMySQL, Oracle, SQLite
Every RDBMS is a DBMS
The R only adds a restriction: it stores its data as tables. So every RDBMS is a DBMS, and not every DBMS is an RDBMS. If a question asks you to name a DBMS, MySQL is a perfectly correct answer.

3Recap

Relational database

A database whose data is organised as tables.

Relation

The formal word for one table.

RDBMS

Software that creates, manages and stores relational databases.

MySQL

The RDBMS used throughout this course. Free, and what your practical exam expects.

Quick Check

What makes a database relational?

Quick Check

Another word for a table is…

Quick Check

Which statement is true?