SlideShare a Scribd company logo
2
Most read
4
Most read
7
Most read
Types of Keys in
Database Management System
Dr. Kamal Gulati
Why we have Keys in DB?
• A Key is an attribute or a set of attributes in a
relation that identifies a tuple (record) in a
relation.
• The keys are defined in a table to access or
sequence the stored data quickly and
smoothly.
• They are also used to create relationship
between different tables.
Dr. Kamal Gulati
Types of Keys in Database
• 1. Primary Key
• 2. Candidate Key
• 3. Alternate Key
• 4. Super Key
• 5. Composite Key
• 6. Foreign Key
• 7. Unique Key
Dr. Kamal Gulati
Primary Key
Employee
EmployeeID
EmployeeName
SSN
DeptID
DOB
• Which is Unique & Can’t be have
NULL Value
• Is the column you choose to
maintain uniqueness in a table at
row level.
• Here in Employee table we can
choose either EmployeeID or SSN
column for a PK.
• EmployeeID is preferable choice
because SSN is a secure (PII) value.
Dr. Kamal Gulati
Primary Key
• It is a candidate key that is chosen by the
database designer to identify entities with in
an entity set.
• Primary key is the minimal super keys. In the
ER diagram primary key is represented by
underlining the primary key attribute.
• Ideally a primary key is composed of only a
single attribute.
• But it is possible to have a primary key
composed of more than one attribute.
Dr. Kamal Gulati
To define a field as primary key,
following conditions had to be met :
• 1. No two rows can have the same primary key
value.
• 2. Every row must have a primary key value.
• 3. The primary key field cannot be null.
• 4. Value in a primary key column can never be
modified or updated, if any foreign key refers
to that primary key.
Dr. Kamal Gulati
Candidate Key
Employee
EmployeeID
EmployeeName
SSN
DeptID
DOB
• Are individual columns in a table
that qualifies for uniqueness of
each row/tuple.
• Here in Employee table
EmployeeID & SSN are eligible
for a Primary Key and thus are
Candidate keys.
• Candidate Keys are super keys
for which no proper subset is a
super key. In other words
candidate keys are minimal
super keys.
Dr. Kamal Gulati
Alternate Key
Employee
EmployeeID
EmployeeName
SSN
DeptID
DOB
• Candidate column other the
Primary column, like
if EmployeeID is set for a PK
then SSN would be the Alternate
key.
Dr. Kamal Gulati
Super Key
Employee
EmployeeID
EmployeeName
SSN
DeptID
DOB
• If you add any other Column /
Attribute to a Primary Key then it
become a Super Key,
like EmployeeID +
EmployeeName is a Super Key.
• Super key stands for superset of
a key.
• A Super Key is a set of one or
more attributes that are taken
collectively and can identify all
other attributes uniquely.
Dr. Kamal Gulati
Composite Key
Employee
EmployeeID
EmployeeName
SSN
DeptID
DOB
• If a table do have a single column
that qualifies for a Candidate key,
then you have to select 2 or more
columns to make a row unique.
• Like if there is no EmployeeID or
SSN columns, then you can
make EmployeeName +
DateOfBirth (DOB) as Composite
Primary Key. But still there can be
a narrow chance of duplicate rows.
Dr. Kamal Gulati
Foreign KeyEmployee
EmployeeID
EmployeeName
SSN
DeptID
DOB
Department
DeptID
DeptName
• Here in above tables DeptID of Department
table is Primary Key where as DeptID of
Employee is an Foreign key.
• It means it has referred to another table. This
concept is also know as Referential Integrity.
Dr. Kamal Gulati
Unique Key
• Unique key is same as
primary with the difference
being the existence of null.
• Unique key field allows one
value as NULL value.
Employee
EmployeeID
EmployeeName
SSN
EmailID
DOB
Dr. Kamal Gulati
Practical Example
• Table R1. Let A,B,C,D,E are the attributes
of this relation.
• A→BCDE (This means the attribute 'A'
uniquely determines the other attributes
B,C,D,E.)
BC→ADE (This means the attributes 'BC'
jointly determines all the other attributes
A,D,E in the relation.)
• Find the following:
– Primary Key
– Candidate Key
– Super Key
– Composite Key
Table – R1
A
B
C
D
E
Dr. Kamal Gulati
Answers:
•Primary Key: A
•Candidate Key: A & BC
•Super Key: A, BC, AE, AD & ABC
•Composite Key: BC
Dr. Kamal Gulati
(Hope you are able to
understand Different Types of
Keys in Database)
For More Questions /
Queries Feel Free to
Contact me.
Dr. Kamal Gulati
Dr. Kamal Gulati
Associate Professor |
University Quality Support Head
Mentoring Programme Coordinator &
Exam Superintendent |
[Ph. D., M.Sc. (Computer Science), M.C.A., M.B.A]
Professional Certifications:
• Certified Microsoft Innovative Educator
• Data Science 101 Certification from Big Data University
• R Language 101 Certification from Big Data University
• SQL Certification from SOLOLEARN.com
• Certified IBM Big Data 101 from Big Data University
• R Program & Python Certified from DataCamp
• Wiley Certified Big Data Analyst [WCBDA]
• Certification on DBMS from IIT Mumbai
• Certified Cisco Certified Network Associate [CCNA]
• Certified Microsoft Certified Professional [MCP]
• Certified Brainbench in (MS Access, MS Project, MySQL 5.7 Administration, Computer
Fundamentals, Advanced Ms. Excel & Windows OS)
• Real-time Advertising Fundamentals Certified from RTA Academy
• Worked as Visiting Professor with Stratford University, USA for six months from Jan’2016 to
June’2016.
• Also worked at Bahrain University in Kingdom of Bahrain Sr. I.T. Faculty (Computer Science
Department) for Period of 2 Years.
• Have rich experience in the field of teaching and research in Computer Science and Information
Technology for almost 15+ years in Academia.
• Having experience of working with both private and public institutions and universities as the
lecturer and self-instruction material writer for Information Technology courses.
• Had number of research papers published in national and international journals and conference
proceedings in IEEE and Scopus Index.
• Also chaired various National and International Conferences of repute and associated with
various International Journals as Editorial Board Member for International and National,
Academic Adviser and Research Paper Reviewer.
• My current area of interest: Big Data Analytics, R Software, Internet & Web Technology, IT Project
Management, Decision Support System, Business Analytics, Management Information System,
Database Management System, Data Networking, R Software and Advanced Excel with Visual
Basic Macros.
• Country Visited: USA, Canada, UAE, Bahrain, Oman (Mostly for Teaching and Research Purpose)
Profile of Dr. Kamal Gulati
Profile Contd….
• Technical Program Committee for International Conference on Data, Engineering and Applications 2017
(IDEA-2k17) which would be on October 28-29, 2017 at Bhopal. http://www.ideaconference.in
• Advisory Board Committee Member for International Conference on Energy, Communication, Data
Analytics and Soft Computing (ICECDS) which would be on 1-2 August 2017 at SKR Engineering College,
Poonamallee, Tamil Nadu, India. http://ecds.org.in
• Advisory Committee Member for International Conference on Innovative Research in Engineering and
Science which would be on 16-17 June 2017 at Asian Institute of Technology Conference Center
Thailand. http://www.iresconf.org
• Advisory Committee Member for International Conference on Cloud Computing and Internet of
everything which held on 10-11 Feb’2016 at Delhi-NCR. http://www.ccioet.org
• Technical Committee member for InCITe-2016 (International Conference on Information Technology)
Theme - Internet of Things: Connect Your Worlds, IT Summit, Amity University 2016 which held on 06-07
Oct, 2016. http://www.amity.edu/incite2016
• Technical Speaker for Global perspective on IT business “The Changing Scenario” – Big Data on
International Students Conference New Delhi (ISCND) which held on 14-15 Oct, 2016 http://iscnd.com
• Advisory Committee Member for International Conference on Sustainable Computing Techniques in
Engineering, Science and Management which has held on 09-10 Sep’2016 at Delhi-NCR.
http://www.scesm.org
• Technical Program Committee Member for Program Committee Member for International Conference on
Recent Trends IN ICT, Jaipur, India, Aug 18-19, 2017 http://rtict.org
• Program Committee Member for International Conference on Recent Advancement in Computer and
Communication Bhopal, India, (IC-RAC-2017) May 26-27, 2017 http://www.icrac.co.in
Profile Contd….
• Editorial Board member for the following International Journals:
– International Journal of Computer Science and Innovation
http://www.infinitysciences.org
– International Journal of Latest Research in Engineering and Technology
http://www.ijlret.com
– International Journal of Latest Trends in Engineering and Technology
http://www.ijltet.org
– International Journal of Application or
Innovation in Engineering & Management
http://www.ijaiem.org
– International Journal for Management http://www.ijm-apm.com
– The International Journal of Emerging Engineering and Embedded Systems
http://www.ijeees.org
– Conference Info http://conferenceinfo.org/tpc.php
• Expert Speaker for Program “Insurance Beyond Doubt” Presented by Oriental
Insurance Co Ltd.
https://www.youtube.com/watch?v=GrvJkN_Zn3Q
BOOK, CHAPTER, and CASE STUDY Published
• Published Book on “A Study of Changing Trends in E-CRM of Indian
Insurance Industry” Published by LAP Lambert Academic Publishing, one
of the top researchers and renowned scientists of Germany with ISBN:
3330009543, 9783330009547. The Book available at Amazon.com.
• Published Real Case Study on “IoT Security Considerations for Higher
Education” published on Business Cases - RENVOI 2017 BOOK (The Case
Centre, UK) with ISBN: 978-1-4828-8840-9, Page 63-70. The Book available
at the various online website: Amazon, AbeBooks, Chegg, Barnes & Noble.
• Published Chapter on "Role of eWorld in Insurance Innovation" Published
by Insurance Institute of India (III), 60 Years Diamond Jubilee,
Compendium, Nov 2016 – (Magazine) – One of the premium Insurance
Institute of India.
Contact Details
• Email : drkamalgulati@gmail.com
• Website : http://mybigdataanalytics.com
• LinkedIn : https://in.linkedin.com/in/drkamalgulati
• Twitter : @DrKamalGulati
• Skype : kamalgulati7
• Phone: +91-9718361928

More Related Content

PPTX
DBMS: Types of keys
Bharati Ugale
 
PDF
War of 1812
Kevin Zahner
 
PPTX
Importance of feedback
Gufran Abidi
 
PDF
Battery technology
Swastika Das
 
PPTX
Field Effect Transistor ppt
Sameeksha Verma
 
PPTX
Types Of Keys in DBMS
PadamNepal1
 
DBMS: Types of keys
Bharati Ugale
 
War of 1812
Kevin Zahner
 
Importance of feedback
Gufran Abidi
 
Battery technology
Swastika Das
 
Field Effect Transistor ppt
Sameeksha Verma
 
Types Of Keys in DBMS
PadamNepal1
 

What's hot (20)

PPTX
Relational database
Megha Sharma
 
PPTX
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
PPTX
Database security
Birju Tank
 
PPT
Database systems
Dhani Ahmad
 
PPT
1. Introduction to DBMS
koolkampus
 
PPTX
1.4 data independence
BHARATH KUMAR
 
PPT
Advanced sql
Dhani Ahmad
 
PPTX
Types of keys dbms
Surkhab Shelly
 
PPT
ER-Model-ER Diagram
Saranya Natarajan
 
PPT
Basic DBMS ppt
dangwalrajendra888
 
PPTX
Dbms Introduction and Basics
SHIKHA GAUTAM
 
PPTX
Presentation on Database management system
Prerana Bhattarai
 
PPTX
Database system environment ppt.
yhen06
 
PPTX
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
PPTX
Database security
afzaalkhalid1
 
PPTX
introduction to database
Akif shexi
 
PDF
Chapter 6 Database Security and Authorization (4).pdf
abrehamcheru14
 
Relational database
Megha Sharma
 
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Database security
Birju Tank
 
Database systems
Dhani Ahmad
 
1. Introduction to DBMS
koolkampus
 
1.4 data independence
BHARATH KUMAR
 
Advanced sql
Dhani Ahmad
 
Types of keys dbms
Surkhab Shelly
 
ER-Model-ER Diagram
Saranya Natarajan
 
Basic DBMS ppt
dangwalrajendra888
 
Dbms Introduction and Basics
SHIKHA GAUTAM
 
Presentation on Database management system
Prerana Bhattarai
 
Database system environment ppt.
yhen06
 
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
Database security
afzaalkhalid1
 
introduction to database
Akif shexi
 
Chapter 6 Database Security and Authorization (4).pdf
abrehamcheru14
 
Ad

Similar to Types of keys in database management system by Dr. Kamal Gulati (20)

DOC
Alok.Resume_3.4
Alok Rajkumar
 
PDF
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
NamanGulati17
 
PDF
Intro of Key Features of SoftCAAT BI SQL Software
rafeq
 
DOC
Premanand_Jha
Prem Jha
 
DOC
Arpit Srivastava
Arpit Srivastava
 
PPTX
Future career goals in it
Hadshana Kamalanathan
 
PPTX
Enhancing Enterprise Search with Machine Learning - Simon Hughes, Dice.com
Simon Hughes
 
PPTX
Week 2 - Database System Development Lifecycle-old.pptx
NurulIzrin
 
PDF
Conceptual vs. Logical vs. Physical Data Modeling
DATAVERSITY
 
PPTX
A Beard, An App, A Blender
edm00se
 
PDF
Intelligent query converter a domain independent interfacefor conversion
IAEME Publication
 
PPTX
Password management
Sai Kumar
 
DOC
New_Resume_Pramod_01222016
Pramod Bm
 
DOC
Amit_K_Dhal_Data_Analyst-1
Pin2 Dhal
 
PDF
Taming the shrew Power BI
Kellyn Pot'Vin-Gorman
 
PDF
Intro of Key Features of eCAAT Ent Software
rafeq
 
DOC
Business analyst with project training
FuturePoint Technologies
 
PDF
Intro of key features of eCAAT Pro Software
rafeq
 
PPTX
Utiva Presesentation-Shamsudeen Suleiman.pptx
SuleimanBashirShamsu
 
PPTX
Text Mining & Sentiment Analysis made easy, with Azure and Power BI
Sanil Mhatre
 
Alok.Resume_3.4
Alok Rajkumar
 
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
NamanGulati17
 
Intro of Key Features of SoftCAAT BI SQL Software
rafeq
 
Premanand_Jha
Prem Jha
 
Arpit Srivastava
Arpit Srivastava
 
Future career goals in it
Hadshana Kamalanathan
 
Enhancing Enterprise Search with Machine Learning - Simon Hughes, Dice.com
Simon Hughes
 
Week 2 - Database System Development Lifecycle-old.pptx
NurulIzrin
 
Conceptual vs. Logical vs. Physical Data Modeling
DATAVERSITY
 
A Beard, An App, A Blender
edm00se
 
Intelligent query converter a domain independent interfacefor conversion
IAEME Publication
 
Password management
Sai Kumar
 
New_Resume_Pramod_01222016
Pramod Bm
 
Amit_K_Dhal_Data_Analyst-1
Pin2 Dhal
 
Taming the shrew Power BI
Kellyn Pot'Vin-Gorman
 
Intro of Key Features of eCAAT Ent Software
rafeq
 
Business analyst with project training
FuturePoint Technologies
 
Intro of key features of eCAAT Pro Software
rafeq
 
Utiva Presesentation-Shamsudeen Suleiman.pptx
SuleimanBashirShamsu
 
Text Mining & Sentiment Analysis made easy, with Azure and Power BI
Sanil Mhatre
 
Ad

More from Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU (20)

PPTX
Concept of Governance - Management of Operational Risk for IT Officers/Execut...
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
PPTX
Models of SDLC (Software Development Life Cycle / Program Development Life Cy...
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
PPTX
CLOUD SECURITY IN INSURANCE INDUSTRY WITH RESPECT TO INDIAN MARKET
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Concept of Governance - Management of Operational Risk for IT Officers/Execut...
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Models of SDLC (Software Development Life Cycle / Program Development Life Cy...
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
CLOUD SECURITY IN INSURANCE INDUSTRY WITH RESPECT TO INDIAN MARKET
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 

Recently uploaded (20)

PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Basics and rules of probability with real-life uses
ravatkaran694
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
CDH. pptx
AneetaSharma15
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 

Types of keys in database management system by Dr. Kamal Gulati

  • 1. Types of Keys in Database Management System Dr. Kamal Gulati
  • 2. Why we have Keys in DB? • A Key is an attribute or a set of attributes in a relation that identifies a tuple (record) in a relation. • The keys are defined in a table to access or sequence the stored data quickly and smoothly. • They are also used to create relationship between different tables. Dr. Kamal Gulati
  • 3. Types of Keys in Database • 1. Primary Key • 2. Candidate Key • 3. Alternate Key • 4. Super Key • 5. Composite Key • 6. Foreign Key • 7. Unique Key Dr. Kamal Gulati
  • 4. Primary Key Employee EmployeeID EmployeeName SSN DeptID DOB • Which is Unique & Can’t be have NULL Value • Is the column you choose to maintain uniqueness in a table at row level. • Here in Employee table we can choose either EmployeeID or SSN column for a PK. • EmployeeID is preferable choice because SSN is a secure (PII) value. Dr. Kamal Gulati
  • 5. Primary Key • It is a candidate key that is chosen by the database designer to identify entities with in an entity set. • Primary key is the minimal super keys. In the ER diagram primary key is represented by underlining the primary key attribute. • Ideally a primary key is composed of only a single attribute. • But it is possible to have a primary key composed of more than one attribute. Dr. Kamal Gulati
  • 6. To define a field as primary key, following conditions had to be met : • 1. No two rows can have the same primary key value. • 2. Every row must have a primary key value. • 3. The primary key field cannot be null. • 4. Value in a primary key column can never be modified or updated, if any foreign key refers to that primary key. Dr. Kamal Gulati
  • 7. Candidate Key Employee EmployeeID EmployeeName SSN DeptID DOB • Are individual columns in a table that qualifies for uniqueness of each row/tuple. • Here in Employee table EmployeeID & SSN are eligible for a Primary Key and thus are Candidate keys. • Candidate Keys are super keys for which no proper subset is a super key. In other words candidate keys are minimal super keys. Dr. Kamal Gulati
  • 8. Alternate Key Employee EmployeeID EmployeeName SSN DeptID DOB • Candidate column other the Primary column, like if EmployeeID is set for a PK then SSN would be the Alternate key. Dr. Kamal Gulati
  • 9. Super Key Employee EmployeeID EmployeeName SSN DeptID DOB • If you add any other Column / Attribute to a Primary Key then it become a Super Key, like EmployeeID + EmployeeName is a Super Key. • Super key stands for superset of a key. • A Super Key is a set of one or more attributes that are taken collectively and can identify all other attributes uniquely. Dr. Kamal Gulati
  • 10. Composite Key Employee EmployeeID EmployeeName SSN DeptID DOB • If a table do have a single column that qualifies for a Candidate key, then you have to select 2 or more columns to make a row unique. • Like if there is no EmployeeID or SSN columns, then you can make EmployeeName + DateOfBirth (DOB) as Composite Primary Key. But still there can be a narrow chance of duplicate rows. Dr. Kamal Gulati
  • 11. Foreign KeyEmployee EmployeeID EmployeeName SSN DeptID DOB Department DeptID DeptName • Here in above tables DeptID of Department table is Primary Key where as DeptID of Employee is an Foreign key. • It means it has referred to another table. This concept is also know as Referential Integrity. Dr. Kamal Gulati
  • 12. Unique Key • Unique key is same as primary with the difference being the existence of null. • Unique key field allows one value as NULL value. Employee EmployeeID EmployeeName SSN EmailID DOB Dr. Kamal Gulati
  • 13. Practical Example • Table R1. Let A,B,C,D,E are the attributes of this relation. • A→BCDE (This means the attribute 'A' uniquely determines the other attributes B,C,D,E.) BC→ADE (This means the attributes 'BC' jointly determines all the other attributes A,D,E in the relation.) • Find the following: – Primary Key – Candidate Key – Super Key – Composite Key Table – R1 A B C D E Dr. Kamal Gulati
  • 14. Answers: •Primary Key: A •Candidate Key: A & BC •Super Key: A, BC, AE, AD & ABC •Composite Key: BC Dr. Kamal Gulati
  • 15. (Hope you are able to understand Different Types of Keys in Database) For More Questions / Queries Feel Free to Contact me. Dr. Kamal Gulati
  • 16. Dr. Kamal Gulati Associate Professor | University Quality Support Head Mentoring Programme Coordinator & Exam Superintendent | [Ph. D., M.Sc. (Computer Science), M.C.A., M.B.A] Professional Certifications: • Certified Microsoft Innovative Educator • Data Science 101 Certification from Big Data University • R Language 101 Certification from Big Data University • SQL Certification from SOLOLEARN.com • Certified IBM Big Data 101 from Big Data University • R Program & Python Certified from DataCamp • Wiley Certified Big Data Analyst [WCBDA] • Certification on DBMS from IIT Mumbai • Certified Cisco Certified Network Associate [CCNA] • Certified Microsoft Certified Professional [MCP] • Certified Brainbench in (MS Access, MS Project, MySQL 5.7 Administration, Computer Fundamentals, Advanced Ms. Excel & Windows OS) • Real-time Advertising Fundamentals Certified from RTA Academy
  • 17. • Worked as Visiting Professor with Stratford University, USA for six months from Jan’2016 to June’2016. • Also worked at Bahrain University in Kingdom of Bahrain Sr. I.T. Faculty (Computer Science Department) for Period of 2 Years. • Have rich experience in the field of teaching and research in Computer Science and Information Technology for almost 15+ years in Academia. • Having experience of working with both private and public institutions and universities as the lecturer and self-instruction material writer for Information Technology courses. • Had number of research papers published in national and international journals and conference proceedings in IEEE and Scopus Index. • Also chaired various National and International Conferences of repute and associated with various International Journals as Editorial Board Member for International and National, Academic Adviser and Research Paper Reviewer. • My current area of interest: Big Data Analytics, R Software, Internet & Web Technology, IT Project Management, Decision Support System, Business Analytics, Management Information System, Database Management System, Data Networking, R Software and Advanced Excel with Visual Basic Macros. • Country Visited: USA, Canada, UAE, Bahrain, Oman (Mostly for Teaching and Research Purpose) Profile of Dr. Kamal Gulati
  • 18. Profile Contd…. • Technical Program Committee for International Conference on Data, Engineering and Applications 2017 (IDEA-2k17) which would be on October 28-29, 2017 at Bhopal. http://www.ideaconference.in • Advisory Board Committee Member for International Conference on Energy, Communication, Data Analytics and Soft Computing (ICECDS) which would be on 1-2 August 2017 at SKR Engineering College, Poonamallee, Tamil Nadu, India. http://ecds.org.in • Advisory Committee Member for International Conference on Innovative Research in Engineering and Science which would be on 16-17 June 2017 at Asian Institute of Technology Conference Center Thailand. http://www.iresconf.org • Advisory Committee Member for International Conference on Cloud Computing and Internet of everything which held on 10-11 Feb’2016 at Delhi-NCR. http://www.ccioet.org • Technical Committee member for InCITe-2016 (International Conference on Information Technology) Theme - Internet of Things: Connect Your Worlds, IT Summit, Amity University 2016 which held on 06-07 Oct, 2016. http://www.amity.edu/incite2016 • Technical Speaker for Global perspective on IT business “The Changing Scenario” – Big Data on International Students Conference New Delhi (ISCND) which held on 14-15 Oct, 2016 http://iscnd.com • Advisory Committee Member for International Conference on Sustainable Computing Techniques in Engineering, Science and Management which has held on 09-10 Sep’2016 at Delhi-NCR. http://www.scesm.org • Technical Program Committee Member for Program Committee Member for International Conference on Recent Trends IN ICT, Jaipur, India, Aug 18-19, 2017 http://rtict.org • Program Committee Member for International Conference on Recent Advancement in Computer and Communication Bhopal, India, (IC-RAC-2017) May 26-27, 2017 http://www.icrac.co.in
  • 19. Profile Contd…. • Editorial Board member for the following International Journals: – International Journal of Computer Science and Innovation http://www.infinitysciences.org – International Journal of Latest Research in Engineering and Technology http://www.ijlret.com – International Journal of Latest Trends in Engineering and Technology http://www.ijltet.org – International Journal of Application or Innovation in Engineering & Management http://www.ijaiem.org – International Journal for Management http://www.ijm-apm.com – The International Journal of Emerging Engineering and Embedded Systems http://www.ijeees.org – Conference Info http://conferenceinfo.org/tpc.php • Expert Speaker for Program “Insurance Beyond Doubt” Presented by Oriental Insurance Co Ltd. https://www.youtube.com/watch?v=GrvJkN_Zn3Q
  • 20. BOOK, CHAPTER, and CASE STUDY Published • Published Book on “A Study of Changing Trends in E-CRM of Indian Insurance Industry” Published by LAP Lambert Academic Publishing, one of the top researchers and renowned scientists of Germany with ISBN: 3330009543, 9783330009547. The Book available at Amazon.com. • Published Real Case Study on “IoT Security Considerations for Higher Education” published on Business Cases - RENVOI 2017 BOOK (The Case Centre, UK) with ISBN: 978-1-4828-8840-9, Page 63-70. The Book available at the various online website: Amazon, AbeBooks, Chegg, Barnes & Noble. • Published Chapter on "Role of eWorld in Insurance Innovation" Published by Insurance Institute of India (III), 60 Years Diamond Jubilee, Compendium, Nov 2016 – (Magazine) – One of the premium Insurance Institute of India.
  • 21. Contact Details • Email : [email protected] • Website : http://mybigdataanalytics.com • LinkedIn : https://in.linkedin.com/in/drkamalgulati • Twitter : @DrKamalGulati • Skype : kamalgulati7 • Phone: +91-9718361928