SlideShare a Scribd company logo
KEYS:
Primary Key:
• An attribute or set of attributes that
uniquely identifies a row or record in a
relation/table is known as primary key.
• A relation can have only one Primary Key.
• Each value in Primary Key attribute must be
unique.
• Primary Key cannot contain null values.
 Candidate Key:
• The attributes or set of attributes that
can be used as primary key is called
Candidate Key.
Reg No Name Class
10 Asad C.A
20 Mohsin P.H.D
30 Zeeshan M.B.B.S
The attribute Reg No is Primary
Key.
KEYS:
 Alternate Key:
• The candidate keys
that are not selected
as primary key are
know as Alternate
Keys.
 Composite Key:
• A primary key that
consists of two or
more attributes is
known as Composite
Key.
KEYS:
 Secondary Key:
• An attribute or set of
attributes that is bases for
retrieval is called S.K
• One Secondary Key value
may refer to many records.
• Secondary Key can be a
non-unique attribute.
 Foreign Key:
• A Foreign Key is an
attribute or set of
attributes in a
relation/table whose
values match a primary
key in another relation.

More Related Content

PPTX
Keys_in_DBMS_VALID_INFORMATION_IS_AVAILA
PPTX
Types Of Keys in DBMS
PDF
computer-210809080138.pdf
PPTX
Keys.pptx
PPTX
xi ip rdbms.pptxsieiw9wiejrnejow929wiejemm
DOCX
Keys used in database
PPTX
Dbms keys
PPTX
Dbms keysppt
Keys_in_DBMS_VALID_INFORMATION_IS_AVAILA
Types Of Keys in DBMS
computer-210809080138.pdf
Keys.pptx
xi ip rdbms.pptxsieiw9wiejrnejow929wiejemm
Keys used in database
Dbms keys
Dbms keysppt

Similar to dbms keys.pptx (10)

PPTX
Relational Data Model.pptx
PPTX
Relational database Management system.pptx
PDF
DBMS_Keys.pdf
PPTX
The Relational Database Model
PPTX
SQL_DBMS_KEYS.pptx
PPTX
Types of keys in database | SQL
PPTX
KEYS IN DBMS.pptx soap ui kkeys and eclipse id
PPTX
Types of keys in dbms
PDF
DBMS VHGFGJKFHVGFJKHHFVHGFHBBVVHGVVHGVBVHG
PPTX
DBMS-Keys , Attributes and Constraints.pptx
Relational Data Model.pptx
Relational database Management system.pptx
DBMS_Keys.pdf
The Relational Database Model
SQL_DBMS_KEYS.pptx
Types of keys in database | SQL
KEYS IN DBMS.pptx soap ui kkeys and eclipse id
Types of keys in dbms
DBMS VHGFGJKFHVGFJKHHFVHGFHBBVVHGVVHGVBVHG
DBMS-Keys , Attributes and Constraints.pptx
Ad

More from Ranjit273515 (6)

PDF
41- Ranjit CE 4th Sem.(P and I Notes).pdf
PDF
question3.pdf
PDF
question3.pdf
PDF
question2.pdf
PPT
dbms notes.ppt
PPT
SQL.ppt
41- Ranjit CE 4th Sem.(P and I Notes).pdf
question3.pdf
question3.pdf
question2.pdf
dbms notes.ppt
SQL.ppt
Ad

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
master seminar digital applications in india
PDF
Trump Administration's workforce development strategy
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Microbial disease of the cardiovascular and lymphatic systems
Weekly quiz Compilation Jan -July 25.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
2.FourierTransform-ShortQuestionswithAnswers.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
A systematic review of self-coping strategies used by university students to ...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.pdf
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
master seminar digital applications in india
Trump Administration's workforce development strategy
Microbial diseases, their pathogenesis and prophylaxis
Anesthesia in Laparoscopic Surgery in India
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
O5-L3 Freight Transport Ops (International) V1.pdf
Supply Chain Operations Speaking Notes -ICLT Program

dbms keys.pptx

  • 1. KEYS: Primary Key: • An attribute or set of attributes that uniquely identifies a row or record in a relation/table is known as primary key. • A relation can have only one Primary Key. • Each value in Primary Key attribute must be unique. • Primary Key cannot contain null values.  Candidate Key: • The attributes or set of attributes that can be used as primary key is called Candidate Key. Reg No Name Class 10 Asad C.A 20 Mohsin P.H.D 30 Zeeshan M.B.B.S The attribute Reg No is Primary Key.
  • 2. KEYS:  Alternate Key: • The candidate keys that are not selected as primary key are know as Alternate Keys.  Composite Key: • A primary key that consists of two or more attributes is known as Composite Key.
  • 3. KEYS:  Secondary Key: • An attribute or set of attributes that is bases for retrieval is called S.K • One Secondary Key value may refer to many records. • Secondary Key can be a non-unique attribute.  Foreign Key: • A Foreign Key is an attribute or set of attributes in a relation/table whose values match a primary key in another relation.