Relational-Model-in-DBMSLecture (1)
Relational-Model-in-DBMSLecture (1)
The relational model uses a collection of tables to represent both data and the relationships among those data. Each table has
multiple columns, and each column has a unique name. Tables are also known as relations. The relational model is an example of a
record-based model. Record-based models are named so because the database is structured in fixed-format records of several
types. Each table contains records of a particular type, defining a fixed number of fields, or attributes. The relational data model is
the most widely used data model, and a vast majority of current database systems are based on the relational model.
The relational model represents how data is stored in relational databases. A relational database consists of a collection of tables,
each of which is assigned a unique name. Consider a relation STUDENT with attributes ROLL_NO, NAME, ADDRESS, PHONE, and AGE.
Table: STUDENT
Important Terminologies
Domain Constraints: Attribute values must lie within a specified range (e.g., AGE > 0).
Key Integrity: A relation must have a unique key (e.g., ROLL_NO in STUDENT is unique and non-null).
Referential Integrity: Attributes in one table must reference valid values in another table.
Table: BRANCH
Branch_Code Branch_Name
CS Computer Science
IT Information Technology
ECE Electronics & Communication
CV Civil Engineering
Table: STUDENT
ACID Properties
This snippet provides a comprehensive understanding of the relational model in DBMS, covering key concepts, terminologies,
constraints, Codd's rules, and ACID properties.