Module 3
Module 3
Module 3
• In general, a relation schema may have more than one key. In this
case, each of the keys is called a candidate key.
• It is common to designate one ofthe candidate keys as the
primary key of the relation.
Relational Databases and Relational Database Schemas
• A relational database usually contains many relations, with tuples
in relations that are related in various ways. I
• A relational database schema S is a set of relation schemas S =
(RI , R2, ... , Rm} and a set of integrity constraints IC.
• A relational database state ,DB of S is a set of relation states DB =
{r1, rz, ... , rm} such that each rj is a state of R, and such that the rj
relation states satisfy the integrity constraints specified in IC
RELATIONAL MODEL CONSTRAINTS AND RELATIONAL DATABASE SCHEMAS
RELATIONAL MODEL CONSTRAINTS AND RELATIONAL DATABASE SCHEMAS
RELATIONAL MODEL CONSTRAINTS AND RELATIONAL DATABASE SCHEMAS
UPDATE EMPLOYEE SET EMP_NAME = 'Emma' WHERE SALARY = 500000;
Exercise