0% found this document useful (0 votes)
46 views

Database Management System

The document discusses different types of constraints in a database management system. It defines constraints as rules used for optimization and data correctness. There are several types of constraints: NOT NULL constraints prevent null values; unique constraints ensure column values are unique; primary key constraints define relationships; check constraints specify allowed column values; and foreign key constraints define required relationships between tables. Integrity constraints ensure the overall validity, integrity, and consistency of data in database tables and include domain integrity, entity integrity, referential integrity, and key constraints.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Database Management System

The document discusses different types of constraints in a database management system. It defines constraints as rules used for optimization and data correctness. There are several types of constraints: NOT NULL constraints prevent null values; unique constraints ensure column values are unique; primary key constraints define relationships; check constraints specify allowed column values; and foreign key constraints define required relationships between tables. Integrity constraints ensure the overall validity, integrity, and consistency of data in database tables and include domain integrity, entity integrity, referential integrity, and key constraints.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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