You are on page 1of 8

DATABASE

MANAGEMENT
SYSTEM
Name : Aniket Subhash Darade
Teacher: Vrushali Ma’am
Standard: SY Bsc IT
Roll NO : 208001
TOPICS
01 Constraints
02 Type of Constraints
03 Integrity Constraints
Constraints
• A Constraint is a rule that is used for optimization purposes.
• The word Constraint refers to the correctness of the data in a
database .
• When the Contents of a database, are modified with the INSERT
,DELETE or UPDATE statement the integrity of the stored data
can be lost in many different ways.
Type of Constraints
1. NOT NULL constraints
NOT NULL constraints prevent null values from being entered
into a column.
2. Unique constraints
Unique constraints ensure that the values in a set of columns are
unique and not null for all rows in the table. The columns
specified in a unique constraint must be defined as NOT NULL.
3. Primary key constraints
You can use primary key and foreign key constraints to define
relationships between tables.
4. (Table) Check constraints
A check constraint (also referred to as a table check constraint) is a
database rule that specifies the values allowed in one or more
columns of every row of a table
5. Foreign key (referential) constraints
Foreign key constraints (also known as referential
constraints or referential integrity constraints) enable definition of
required relationships between and within tables.
6. Informational constraints
An informational constraint is a constraint attribute that can be used
by the SQL compiler to improve the access to data
Integrity Constraints
Integrity constraints in Database Management Systems (DBMS) are a set of
rules that are applied on the table columns or relationships to ensure that the
overall validity, integrity, and consistency (i.e. the quality) of the data present
in the database table is maintained. 
Types of Integrity Constraints in DBMS

1. Domain Integrity Constraint


2. Entity Integrity Constraint
3. Referential Integrity Constraint
4. Key Constraints
THANKS!

You might also like