Beruflich Dokumente
Kultur Dokumente
ANDHRA PRADESH
Name : M. Bhagya Lakshmi
Designation : Lecturer in CCP
Branch : DCCP
Institute : GMR Polytechnic, Gajwel
Year/Semester : V Semester
Subject : RDBMS
Subject Code : CCP505
Topic : SQL Plus
Duration : 50 Mts
Sub Topic : DATA CONSTRAINTS
Teaching aids : PPT and Animations
CCP505.53 1
Objectives :
CCP505.53 2
Recap :
Domain integrity constraints
Not null constraints
Check constraints
Entity integrity constraints
Unique constraints
Allows only unique values to be stored
Primary constraints
Avoids duplication between tables
Does not allow null values
CCP505.53 3
Introduction :
Domain integrity constraints set a range and
user is prevented from performing the
manipulation
Entity integrity constraints does not allow
duplicate values or null values
What referential integrity means ?
CCP505.53 4
Referential means :
CCP505.53 5
Referential Integrity Constraint :
CCP505.53 6
Referential Integrity Constraint
(Contd..) :
CCP505.53 7
Referential Integrity Constraint
(Contd..) :
CCP505.53 8
Referential Integrity Constraint
(Contd..) :
CCP505.53 9
Referential Integrity Constraint
(Contd..) :
CCP505.53 10
Basic Concepts Related to
Referential Integrity :
Foreign key:
A column or combination of columns included in
the definition of referential integrity which would
refer to a referenced key
Referenced key:
It is a unique or a primary key which is defined
on a column belonging to the parent table
CCP505.53 11
Basic Concepts Related to
Referential Integrity (Contd..) :
Child table:
This table depends upon the values present in the
referenced key of the parent table. Which is
referred by a foreign key
Parent table:
This table determines whether insertion or
updation of data can be done in child table. This
table would be referred by child’s table foreign key
CCP505.53 12
Data Constraints :
CCP505.53 13
Column Level Constraints :
CCP505.53 14
Table Level Constraints :
CCP505.53 15
Summary :
CCP505.53 16
Quiz :
CCP505.53 17
Frequently Asked Questions :
CCP505.53 18
Assignment :
CCP505.53 19