What Is a Relational Database?
A relational database stores each kind of thing in its own table of rows and columns and links tables together through shared key values.
Separate entities into tables and follow the keys that relate their rows.
Imagine a small online shop that keeps its records in one giant spreadsheet. Every time Asha places an order, someone types her name, her city and her email again. When she moves from Pune to Delhi, half her rows get updated and half do not, and now the shop has two versions of the truth. A relational database exists to stop exactly this.
The rule
One thing per table, one fact per row, linked by keys.
A relational database stores data in tables (the formal name is relations). Each table holds one kind of thing: customers, products, orders. Each row is one instance of that thing, and each column is one detail every row has. One column, the primary key, gives every row a unique identity, like customer_id.
Tables connect by storing another table's key. An order does not copy Asha's name and city; it stores her customer_id, and the database can look up the rest whenever you ask. That stored key is called a foreign key.
This is the small shop we will use for the whole course:
customers (customer_id, name, city, email, joined_on)
products (product_id, name, category, price)
orders (order_id, customer_id, product_id, quantity, order_date, status)Asha's city lives in exactly one row of customers. Change it once and every order that points to her sees the new city automatically.
You talk to a relational database in SQL (Structured Query Language). You describe what you want — "every order from a customer in Pune" — and the database works out how to fetch it.

