Beginner Topic 3 of 51 Databases
Relational Model
Data organized into tables of rows and columns.
How it works
The relational model, proposed by Edgar Codd, represents data as relations, tables of rows called tuples and columns called attributes, with each row identified by a key. Relationships between tables are expressed through matching key values rather than pointers. Operations are defined by relational algebra: selection, projection, join, union and difference, and SQL is the practical language built on it. Constraints keep data valid.
Step-by-step walkthrough
- Data is stored in tables, called relations.
- Each table holds one kind of fact.
- Tables connect through shared key values, not pointers.
- A query combines tables by matching those keys.
- Set-based algebra makes queries precise.
Where it is used
Most business systems use relational databases for orders, accounts, inventory and reporting because the model is flexible, well understood and backed by strong guarantees.
Common pitfall
Poor schema design with repeated data or missing keys causes anomalies. Treating a table as an ordered list of rows is wrong, since relations are unordered sets unless queried with ORDER BY. NULL values complicate logic. Model entities carefully, normalize appropriately and use constraints to enforce rules in the database itself.
Where it fits in the course
Relational Model is topic 3 of 51 in Databases, rated Beginner. It follows DBMS. The next topic is Tables, Rows and Columns.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Databases quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Databases quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Relational Model?
Where do people use Relational Model?
What is the most common mistake with Relational Model?
What should I learn before this topic?
How can I practice it?
Is Relational Model hard to learn?
How long does it take to learn Relational Model?
Which topics are related to Relational Model?
What should I study after Relational Model?
Related topics
- DBMS (Databases)
- Tables, Rows and Columns (Databases)
- What is a Database (Databases)
- Primary Keys (Databases)
- Client-Server Model (Distributed Systems & Cloud)
- Waterfall Model (Software Engineering)
- OSI Model (Computer Networks)