A relational database (RDB) is a database that organizes information into tables made up of rows and columns. Tables can be connected through shared identifiers, allowing applications to store and retrieve related data efficiently.
Relational databases are widely used in e-commerce, financial systems, business applications, and data analytics.
Also known as: Relational database, SQL database.
A relational database stores information in structured tables and uses relationships to connect records.
A typical process includes:
Most relational database systems use Structured Query Language (SQL) to manage data.
Popular relational database systems include PostgreSQL, MySQL, and SQLite.
Relational databases and NoSQL databases use different approaches to organizing information.
| Feature | RDB | NoSQL |
|---|---|---|
| Data model | Tables and relationships | Documents, key-value pairs, graphs, and others |
| Schema | Typically predefined | Often more flexible |
| Querying | Usually SQL | Depends on the database |
| Common uses | Transactions and structured data | Flexible or distributed workloads |
Both approaches can support large applications. The right choice depends on data structure, query requirements, and scalability needs.
Relational databases are useful for organizing structured information collected from websites and APIs.
For example, a price-monitoring application can maintain separate tables for products, retailers, and historical prices.
Relationships between these tables allow analysts to compare prices across retailers without repeatedly storing the same product details.
Suppose an online store maintains two tables:
Customers
+-------------+--------+
| customer_id | name |
+-------------+--------+
| 101 | Alice |
| 102 | Bob |
+-------------+--------+
Orders
+----------+-------------+--------+
| order_id | customer_id | total |
+----------+-------------+--------+
| 5001 | 101 | 89.99 |
| 5002 | 102 | 45.50 |
+----------+-------------+--------+
The customer_id field connects each order to its customer.
An application can retrieve customer orders using a SQL join:
SELECT Customers.name, Orders.total
FROM Customers
JOIN Orders
ON Customers.customer_id = Orders.customer_id;
This makes it possible to combine related information without storing customer names in every order record.
A relational database (RDB) stores structured information in tables connected through keys and relationships.
Its support for SQL, data integrity, and reliable transactions makes it a strong choice for business applications, analytics, and structured web data storage.