Loading Data Driven Insights
Preparing your learning content.
Preparing your learning content.
A beginner-friendly introduction to relational databases, tables, rows, columns, relationships, and how SQL connects related data.
On this page
Jump to a lesson section
A relational database stores data in tables.
Each table is organised using rows and columns, and related tables can be connected using matching values.
A relational database keeps data structured, organised, and connected.
Instead of storing everything in one large table, related information is split into separate tables.
Here are two related tables in a relational database.
This query joins Customers and Orders using customer_id.
SELECT
c.customer_name,
o.order_id,
o.order_total
FROM Customers AS c
INNER JOIN Orders AS o
ON c.customer_id = o.customer_id;
customer_id matches.Here is the result returned by the query.
These matching values are usually keys, such as
customer_id.
SQL Roadmap Progress
Topic 1 of 111
1% complete
Next in SQL Roadmap
Continue with the next SQL topic in the recommended roadmap order.
Continue learning โ