Relational Data Model
Relational Data Model
Syllabus:
Introduction to the Relational Model: Structure of Relational Databases, Keys, Database
Schema, Relational Query Languages, Relational Operations.
1. Relational Model
The relational model is an abstract model used to organize and manage data in a database. It
stores data in two-dimensional interrelated tables, also known as relations. This model is the
primary data model used for commercial data processing applications.
2. Structure of Relational Databases
A relational database consists of a collection of tables, each assigned a unique name.
For example, consider the instructor table below, which stores information about instructors.
The table has four columns: ID, Name, Dept_Name, and Salary. Each row in the table
represents an instructor's record.
Table: Instructor
• The attribute dept_name appears in both the instructor schema and the department
schema. This duplication allows for linking data between different relations.
Keys
These key constraints help maintain data integrity and establish meaningful relationships
between tables in a relational database.
➢ A database schema, along with primary key and foreign key dependencies, can be
depicted by schema diagrams.
➢ Below Figure shows the schema diagram for our university organization. Each
relation appears as a box, with the relation’s name at the top in blue, and the attributes
listed inside the box.
➢ Primary key attributes are shown underlined. Foreign key dependencies appear as
arrows from the foreign key attributes of the referencing relation to the primary key
of the referenced relation.