Professional Documents
Culture Documents
Keys
Keys
KEYS
By:-
Khushi Birla
1
Click to edit Master title style
Keys
• Keys play an important role in the relational
database.
• It is used to uniquely identify any record or
row of data from the table. It is also used to
establish and identify relationships between
tables.
• They basically help in identifying the
relationship between tables.
2 2
Click to edit Master title style
TYPES OF KEYS:-
1.Super Key
2.Candidate Key
3.Primary Key
4.Foreign Key
3 3
Click to edit Master title style
SUPER KEY
4 4
Click to edit Master title style
CANDIDATE KEY
• Candidate key is a subset of super key.
• A candidate is a single field or the least combination of
fields that uniquely identifies each record in a table.
• The candidate key must not be null.
5 5
Click to edit Master title
PRIMARY KEY style
6
Click to edit Master title style
7 7
Click to edit Master title style
8 8
Click to edit Master title style
FOREIGN KEY
• Foreign keys are the column of the table used to point to
the primary key of another table.
• A foreign key is a primary key from one table that appears
as a field in another where the first table has a relationship
to the record.
9
Click to edit Master title style
1010
Click to edit Master title style
“THANK YOU!!
1111