SlideShare a Scribd company logo
KEYS IN DBMS
BY:SURBHI SAROHA
KEYS
 Primary Key
 Candidate Key
 Super Key
 Foreign Key
 Alternate Key
 Composite Key
PRIMARY KEY
 A primary key, also called a primary keyword, is a column in a relational database table that's distinctive for
each record.
 It's a unique identifier, such as a driver's license number, telephone number with area code or vehicle
identification number (VIN).
 A relational database must have only one primary key.
CANDIDATE KEY
 A candidate key is a set of one or more columns that can uniquely identify a row within a table, while a
primary key is a candidate key that is chosen to be the official unique identifier for a row within the table.
 A table can have multiple candidate keys, but can only have one primary key.
SUPER KEY
 Super key is a single key or a group of multiple keys that can uniquely identify tuples in a table.
 Super Key can contain multiple attributes that might not be able to identify tuples in a table independently,
but when grouped with certain keys, they can identify tuples uniquely.
FOREIGN KEY
 A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between
the data in two tables to control the data that can be stored in the foreign key table.
ALTERNATE KEY
 An alternate key is the secondary candidate key that contains all the property of a candidate key but is an
alternate option.
COMPOSITE KEY
 In database design, a composite key is a candidate key that consists of two or more attributes (table columns)
that together uniquely identify an entity occurrence (table row).
THANK YOU 

More Related Content

Similar to Keys in dbms(UNIT 2) (20)

PPTX
Presentation OF DBMS-2.pptx
ShumailaSajjad
 
PPTX
Keys in SQL.........................pptx
ejazayesha485
 
PPTX
Copy of Templates ............. (1).pptx
ejazayesha485
 
PPTX
Copy of Templates & Apps............................. (1).pptx
ejazayesha485
 
PDF
computer-210809080138.pdf
rahulsharma571283
 
PPTX
Types Of Keys in DBMS
PadamNepal1
 
PPTX
Keys_in_DBMS_VALID_INFORMATION_IS_AVAILA
prashantkori7
 
PPTX
Dbms keysppt
ArunakumariAkula1
 
PPTX
Keys.pptx
revathi s
 
PPTX
DBMS Keys.pptx
AryanGour1
 
PPTX
A Presentation of Types of Keys in RDBMS.pptx
harman6895ala
 
PPTX
SQL_DBMS_KEYS.pptx
rahulsharma571283
 
PPTX
B & c
Vaibhav Kathuria
 
PDF
Keys in Database
A. S. M. Shafi
 
DOCX
Doc 20191022-wa0041
university of Gujrat, pakistan
 
PPTX
DEE 431 Database keys and Normalisation Slide 2
YOGESH SINGH
 
PPTX
Database keys
Rahul Mishra
 
PDF
slide5keys-140722233859-phpapp02.pdf
BhanuCharan9
 
PPTX
Slide 5 keys
Visakh V
 
PPTX
Types of keys in database | SQL
Sumit Pandey
 
Presentation OF DBMS-2.pptx
ShumailaSajjad
 
Keys in SQL.........................pptx
ejazayesha485
 
Copy of Templates ............. (1).pptx
ejazayesha485
 
Copy of Templates & Apps............................. (1).pptx
ejazayesha485
 
computer-210809080138.pdf
rahulsharma571283
 
Types Of Keys in DBMS
PadamNepal1
 
Keys_in_DBMS_VALID_INFORMATION_IS_AVAILA
prashantkori7
 
Dbms keysppt
ArunakumariAkula1
 
Keys.pptx
revathi s
 
DBMS Keys.pptx
AryanGour1
 
A Presentation of Types of Keys in RDBMS.pptx
harman6895ala
 
SQL_DBMS_KEYS.pptx
rahulsharma571283
 
Keys in Database
A. S. M. Shafi
 
Doc 20191022-wa0041
university of Gujrat, pakistan
 
DEE 431 Database keys and Normalisation Slide 2
YOGESH SINGH
 
Database keys
Rahul Mishra
 
slide5keys-140722233859-phpapp02.pdf
BhanuCharan9
 
Slide 5 keys
Visakh V
 
Types of keys in database | SQL
Sumit Pandey
 

More from Dr. SURBHI SAROHA (20)

PPTX
Deep learning(UNIT 3) BY Ms SURBHI SAROHA
Dr. SURBHI SAROHA
 
PPTX
MOBILE COMPUTING UNIT 2 by surbhi saroha
Dr. SURBHI SAROHA
 
PPTX
Mobile Computing UNIT 1 by surbhi saroha
Dr. SURBHI SAROHA
 
PPTX
DEEP LEARNING (UNIT 2 ) by surbhi saroha
Dr. SURBHI SAROHA
 
PPTX
Introduction to Deep Leaning(UNIT 1).pptx
Dr. SURBHI SAROHA
 
PPTX
Cloud Computing (Infrastructure as a Service)UNIT 2
Dr. SURBHI SAROHA
 
PPTX
Management Information System(Unit 2).pptx
Dr. SURBHI SAROHA
 
PPTX
Searching in Data Structure(Linear search and Binary search)
Dr. SURBHI SAROHA
 
PPTX
Management Information System(UNIT 1).pptx
Dr. SURBHI SAROHA
 
PPTX
Introduction to Cloud Computing(UNIT 1).pptx
Dr. SURBHI SAROHA
 
PPTX
JAVA (UNIT 5)
Dr. SURBHI SAROHA
 
PPTX
DBMS (UNIT 5)
Dr. SURBHI SAROHA
 
PPTX
DBMS UNIT 4
Dr. SURBHI SAROHA
 
PPTX
JAVA(UNIT 4)
Dr. SURBHI SAROHA
 
PPTX
OOPs & C++(UNIT 5)
Dr. SURBHI SAROHA
 
PPTX
OOPS & C++(UNIT 4)
Dr. SURBHI SAROHA
 
PPTX
DBMS UNIT 3
Dr. SURBHI SAROHA
 
PPTX
JAVA (UNIT 3)
Dr. SURBHI SAROHA
 
PPTX
DBMS (UNIT 2)
Dr. SURBHI SAROHA
 
PPTX
JAVA UNIT 2
Dr. SURBHI SAROHA
 
Deep learning(UNIT 3) BY Ms SURBHI SAROHA
Dr. SURBHI SAROHA
 
MOBILE COMPUTING UNIT 2 by surbhi saroha
Dr. SURBHI SAROHA
 
Mobile Computing UNIT 1 by surbhi saroha
Dr. SURBHI SAROHA
 
DEEP LEARNING (UNIT 2 ) by surbhi saroha
Dr. SURBHI SAROHA
 
Introduction to Deep Leaning(UNIT 1).pptx
Dr. SURBHI SAROHA
 
Cloud Computing (Infrastructure as a Service)UNIT 2
Dr. SURBHI SAROHA
 
Management Information System(Unit 2).pptx
Dr. SURBHI SAROHA
 
Searching in Data Structure(Linear search and Binary search)
Dr. SURBHI SAROHA
 
Management Information System(UNIT 1).pptx
Dr. SURBHI SAROHA
 
Introduction to Cloud Computing(UNIT 1).pptx
Dr. SURBHI SAROHA
 
JAVA (UNIT 5)
Dr. SURBHI SAROHA
 
DBMS (UNIT 5)
Dr. SURBHI SAROHA
 
DBMS UNIT 4
Dr. SURBHI SAROHA
 
JAVA(UNIT 4)
Dr. SURBHI SAROHA
 
OOPs & C++(UNIT 5)
Dr. SURBHI SAROHA
 
OOPS & C++(UNIT 4)
Dr. SURBHI SAROHA
 
DBMS UNIT 3
Dr. SURBHI SAROHA
 
JAVA (UNIT 3)
Dr. SURBHI SAROHA
 
DBMS (UNIT 2)
Dr. SURBHI SAROHA
 
JAVA UNIT 2
Dr. SURBHI SAROHA
 
Ad

Recently uploaded (20)

PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
Horarios de distribución de agua en julio
pegazohn1978
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Ad

Keys in dbms(UNIT 2)

  • 2. KEYS  Primary Key  Candidate Key  Super Key  Foreign Key  Alternate Key  Composite Key
  • 3. PRIMARY KEY  A primary key, also called a primary keyword, is a column in a relational database table that's distinctive for each record.  It's a unique identifier, such as a driver's license number, telephone number with area code or vehicle identification number (VIN).  A relational database must have only one primary key.
  • 4. CANDIDATE KEY  A candidate key is a set of one or more columns that can uniquely identify a row within a table, while a primary key is a candidate key that is chosen to be the official unique identifier for a row within the table.  A table can have multiple candidate keys, but can only have one primary key.
  • 5. SUPER KEY  Super key is a single key or a group of multiple keys that can uniquely identify tuples in a table.  Super Key can contain multiple attributes that might not be able to identify tuples in a table independently, but when grouped with certain keys, they can identify tuples uniquely.
  • 6. FOREIGN KEY  A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between the data in two tables to control the data that can be stored in the foreign key table.
  • 7. ALTERNATE KEY  An alternate key is the secondary candidate key that contains all the property of a candidate key but is an alternate option.
  • 8. COMPOSITE KEY  In database design, a composite key is a candidate key that consists of two or more attributes (table columns) that together uniquely identify an entity occurrence (table row).