AI Workshop: learn to build apps with AI →
Database Theory: Relational Databases

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


Relational Databases are the software implementation of the concepts expressed by the theory introduced by the Relational Model.

In a Relational Database, data is stored in tables.

Each table contains one or more columns, that hold data of a specific type, like strings, numbers and so on.

The set of a table and all the rules about its columns is called a schema.

Each table can define constraints upon the data that each row can contain.

Tables can reference each other, forming relationships, using foreign keys.

A Database Management System is the software that implements the database in a computer system.

Commonly, relational databases use the SQL language to let us give instructions to create a database, define its tables’ schema, fill tables with data, and finally query the data when needed.

Some examples of software implementing relational databases are PostgreSQL, MySQL, SQLite, Oracle and Microsoft SQL Server.

Lessons in this unit:

0: Introduction
1: Information systems, data and information
2: Data models
3: What is a Database? And a DBMS?
4: Introduction to the ER Data Model
5: The Relational Model
6: ▶︎ Relational Databases
7: Relational Algebra
8: Introduction to SQL
9: Do you always need a database for your app?