QamoosTech
DatabasesFundamentalsBeginnerSQLPostgreSQL

Relational Database

Pronunciationrih-LAY-shun-ul DAY-tuh-bays

Definition

A relational database stores data in tables of rows and columns and links the tables through keys. You query it with SQL, and it enforces a fixed schema and constraints.

Where you hear it

In stack choices (PostgreSQL vs MongoDB), course syllabi and system design interviews.

Examples

  • Payments and members fit a relational database well.
  • PostgreSQL and MySQL are relational databases.
  • Orders, customers and payments are linked by foreign keys in a relational database.

Common mistake

Thinking "relational" refers to relatives. It means tables with defined relations between them.

Don't confuse with

A NoSQL database, which can store documents or key-value data without a fixed table structure.

Say it at work

  • In a meeting or chatUse a relational database unless we have a reason not to.
  • In an email or ticketModel it as tables with foreign keys.