Relational Model in DBMS

Learn via video course
FREE
View all courses
DBMS Course - Master the Fundamentals and Advanced Concepts
DBMS Course - Master the Fundamentals and Advanced Concepts
by Srikanth Varma
1000
5
Start Learning
DBMS Course - Master the Fundamentals and Advanced Concepts
DBMS Course - Master the Fundamentals and Advanced Concepts
by Srikanth Varma
1000
5
Start Learning
Topics Covered

What Is the Relational Model in DBMS?

Definition:    The relational model in DBMS is a data model that uses tables (relations) of rows (tuples) and columns (attributes) to store data, where information is accessed and managed with Structured Query Language (SQL), the standard language used in relational database management systems.

[Image of relational model structure]

In this model, data is organized in a structured, mathematical way that makes it easy to store, retrieve, and maintain consistency. The relational data model explains how the relational model represents data as tables for real-world entities and relationships, and relationships between tables are maintained using keys that uniquely identify rows and connect data across multiple tables.

Key Terminology in the Relational Model

Understanding terminology is essential for exams and interviews. The table below summarizes the core components of the relational database model:

TermMeaning
RelationA table that stores data
TupleA single row in a table representing a specific record
AttributeA column in a table
DomainThe set of allowed values for an attribute
Relation schemaThe logical structure of a relation

A relation must follow rules such as having unique rows, with keys ensuring they can identify each tuple uniquely. A tuple represents one real-world record. An attribute defines the type of data stored. A domain restricts valid values so each value for a particular attribute comes from its specified domain and cannot contain nested data. A relation schema defines the table structure, while a relation instance is the data present at a given time.

Scaler Placement Report and Statistics

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data

Example of Relational Model in DBMS

Consider the following STUDENT relation:

Student_IDNameAgeDept
101Asha20CS
102Ravi21IT
103Neha19EE
In this example:
  • The relation is the STUDENT table

  • Each tuple is a row such as (101, Asha, 20, CS)

  • Attributes are Student_ID, Name, Age, and Dept

  • Domains define allowed values, and each value must come from the specified domain for that attribute (Age must be numeric, Dept must be valid)

A relation refers to a table, and this STUDENT table is one relation instance at a particular moment.

This structured format allows efficient querying and easy updates.

Relational Model Constraints

Constraints are rules that ensure data accuracy, consistency, and integrity in a relational database through rules such as entity integrity, key integrity, key constraints, and referential integrity constraints.

Primary Key

A primary key is the key attribute that uniquely identifies each record or tuple in a relation and cannot contain null values. Among relational model keys, a candidate key is a minimal super key, and one candidate key is selected as the primary key. Example: Student_ID uniquely identifies each student, while foreign keys link tables together.

Foreign Key

foreign key establishes a relationship between two relations by referencing a primary key; primary keys uniquely identify each record in a table, while foreign keys link tables together, and the foreign key in one relation can reference a primary key in the same relation or some other relation.    Example: Student_ID in a COURSE table referencing STUDENT(Student_ID), where COURSE is the referencing relation, STUDENT is the referenced relation, and one relation references the other through shared values.

Domain Constraint

Ensures that the data present for a particular attribute comes from its specified domain. Example: Age must be a positive integer, preventing invalid or nested data in a single field.

Entity Integrity

Ensures that the primary key value cannot be NULL.    Example: A student record without Student_ID is invalid.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Referential Integrity

Ensures foreign key values correspond to existing primary key values, since referential integrity constraints require each foreign key to match a primary key in the referenced relation, whether that table is the same relation or another relation. Example: A course cannot reference a non-existent student.

Ready to Master Database Design?

Understand the core of backend engineering and build scalable systems with Scaler's Software Development Course.

Advantages of the Relational Model ### 1. Simple and easy-to-understand table structure

The relational data model stores data in tables (relations) made up of rows and columns, similar to spreadsheets.    Each table represents one entity (for example, StudentsOrdersEmployees), making the data intuitive to design, view, and manage, even for beginners.

This design also supports data independence, including physical data independence, so changes to physical storage do not affect the logical structure.

2. Strong data consistency using constraints

Relational databases support integrity constraints like:

  • Primary keys (unique identification of records)

  • Foreign keys (maintaining relationships between tables)

  • NOT NULL, UNIQUE, CHECK constraints

These rules ensure data accuracy and integrity, preventing issues such as duplicate records, invalid references, or missing critical information.

3. Standardized querying using SQL

The relational model uses SQL (Structured Query Language), a globally accepted standard used in relational database systems to define, manipulate, and query data.    This makes it easy to:

  • Retrieve data efficiently

  • Perform joins, filters, and aggregations

  • Move skills across different database systems like MySQL, PostgreSQL, Oracle Database, and Microsoft SQL Server

4. Scalable for structured enterprise data

Relational database management systems handle large volumes of structured data very well and are widely used in banking, education, healthcare, and enterprise systems. They can also run complex queries across interconnected data, where a fixed structure and reliability are critical.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Disadvantages of the Relational Model

1. Performance issues with very large joins

When data is spread across many related tables, queries often require multiple joins.    As the database grows, these joins can become computationally expensive, leading to slower performance, especially in complex reporting or analytics.

2. Rigid schema that is hard to modify

Relational databases require a predefined schema.    Changing the structure (adding/removing columns or tables) often requires:

  • Schema migrations

  • Updating dependent applications

  • Possible downtime

This makes the model less flexible when requirements change frequently.

Turn Learning into Career Growth

1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary
1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary

3. Not suitable for unstructured data like images or videos

Relational databases are designed for structured, tabular data.    Storing unstructured data such as:

  • Images

  • Videos

  • Audio files

  • Social media content

is inefficient and cumbersome. Such data is better handled by NoSQL databases or object storage systems, which are built for flexible and large-scale unstructured data.

Relational Model vs Other Data Models

ModelStructureFlexibilityUse Case
RelationalTablesMediumTraditional databases
HierarchicalTreeLowLegacy systems
NetworkGraphMediumComplex relationships
The relational model balances structure and flexibility, while hierarchical and network models are more rigid or complex; the network model depends on fixed links or access paths, whereas the relational model is more flexible for querying.

Applications of the Relational Model (Explained)

The relational model is commonly used in systems where data accuracy, consistency, and reliability are extremely important.

1. Banking Systems

Banks handle highly sensitive data such as customer details, account balances, and transactions.    The relational model ensures:

  • Data integrity through constraints (no invalid or duplicate records)

  • ACID properties for safe transactions

  • Accurate relationships between customers, accounts, and transactions

This makes it ideal for handling financial operations where errors are unacceptable.

Scaler Placement Report and Statistics

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data

2. University Databases

Universities manage structured data like students, courses, faculty, grades, and attendance.    The relational model helps by:

  • Clearly defining relationships (student–course–faculty)

  • Ensuring consistency of academic records

  • Making it easy to query data for reports, results, and administration

3. Inventory Management Systems

Inventory systems track products, suppliers, stock levels, and orders.    Using a relational model allows:

  • Accurate stock updates

  • Prevention of data anomalies (such as negative stock)

  • Easy reporting on sales, purchases, and inventory status

This ensures smooth supply chain operations.

4. Enterprise and ERP Applications

Enterprise Resource Planning (ERP) systems integrate data across departments such as HR, finance, sales, and operations.    The relational model:

  • Maintains strong relationships between multiple tables for business entities and departments

  • Ensures data consistency across the organization

  • Supports complex analytics because teams can run complex queries across related business data

Its consistency and structure make it ideal for mission-critical applications.

FAQs

What is the relational model in DBMS?

The relational data model organizes and helps store data in tables with rows and columns. It uses keys to uniquely identify rows, link related tables, and SQL for querying and managing data.

What are the components of the relational model?

The main components are relations, tuples, attributes, domains, schemas, and constraints that maintain data integrity.

What is a relation in DBMS?

A relation is a table that stores data, and a tuple is a row representing a specific record in that relation instance.

What are relational constraints?

Relational constraints are rules such as primary key, foreign key, domain constraint, entity integrity, referential integrity, and key constraints, which help preserve data integrity by keeping records uniquely identifiable and preventing duplicate or ambiguous entries.

Why is the relational model important?

The relational model provides a structured, consistent, and scalable way to store and retrieve data using SQL.

Hiring Partners:
GGoogleAAmazonMicrosoftFFlipkartAAdobe1200+ more