Relational Model

The Relational Model is the most widely used data model in DBMS. It represents data in the form of tables (relations) consisting of rows and columns.

1. What is Relational Model?

The relational model organizes data into relations (tables). Each table consists of tuples (rows) and attributes (columns).

2. Basic Terminology

Relation   β†’ Table
Tuple      β†’ Row
Attribute  β†’ Column
Degree     β†’ Number of attributes
Cardinality→ Number of tuples

3. Example of a Relation

STUDENT
+---------+--------+-------+
| RollNo  | Name   | Marks |
+---------+--------+-------+
| 101     | Amit   | 78    |
| 102     | Riya   | 85    |
| 103     | Suman  | 72    |
+---------+--------+-------+

Degree = 3
Cardinality = 3

4. Domains

A domain defines the set of valid values that an attribute can take.

5. Relational Schema

A relational schema defines the structure of a relation including its name and attributes.

STUDENT (RollNo, Name, Marks)

6. Properties of Relations

7. Keys in Relational Model

Keys are used to uniquely identify tuples in a relation.

STUDENT
RollNo β†’ Primary Key

8. Integrity Rules

9. Advantages of Relational Model

10. Limitations of Relational Model

Practice Questions

  1. Define relational model.
  2. Explain basic terminology of relational model.
  3. What is degree and cardinality?
  4. Explain integrity rules.
  5. List advantages of relational model.

Practice Task

Design relations for a library system and identify: βœ” Relations βœ” Attributes βœ” Primary keys βœ” Foreign keys