0% found this document useful (0 votes)
62 views7 pages

Database Management System (BCAC401)

This document contains a presentation on database management system keys. It begins with an introduction that defines a database as an organized collection of data. It then outlines 6 types of keys used in relational databases: 1) Primary Key which uniquely identifies each record, 2) Candidate Key which are attributes that can also uniquely identify records, 3) Super Key which is a superset of a candidate key, 4) Foreign Key which links tables by pointing to another table's primary key, 5) Alternate Key which are candidate keys not used as the primary key, and 6) Composite Key which is a primary key consisting of more than one attribute.

Uploaded by

Morning Star
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views7 pages

Database Management System (BCAC401)

This document contains a presentation on database management system keys. It begins with an introduction that defines a database as an organized collection of data. It then outlines 6 types of keys used in relational databases: 1) Primary Key which uniquely identifies each record, 2) Candidate Key which are attributes that can also uniquely identify records, 3) Super Key which is a superset of a candidate key, 4) Foreign Key which links tables by pointing to another table's primary key, 5) Alternate Key which are candidate keys not used as the primary key, and 6) Composite Key which is a primary key consisting of more than one attribute.

Uploaded by

Morning Star
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CALCUTTA INSTITUTE OF SCIENCE

& MANAGEMENT

Name : Mubasshara Rahman


REG. NO. 212991001210011
Roll No: 29901221016
Stream : BCA (2nd year- 4thsem)
Subject: Database Management System
(BCAC401)

PRESENTATION TITLE 1
KEYS OF DATABASE
MANAGEMENT
SYSTEM
INTRODUCTION

A database is an organized collection of data,


so that it can be easily accessed and
managed. We organizes the data in the form
of tables, views, schemas, reports, etc. For
Example, a university database organizes the
data about students, faculty, admin staff, etc.

PRESENTATION TITLE 3
TYPES OF KEYS
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
There are different types of keys:
1. Primary Key: It is the first key used to identify one and only one
instance of an entity uniquely. In the EMPLOYEE table, ID can be
the primary key since it is unique for each employee.
2. Candidate key: Except for the primary key, the remaining
attributes are considered a candidate key. The candidate keys
are as strong as the primary key.

For example: In the EMPLOYEE table, id is best suited for the


primary key. The rest of the attributes, like SSN, Passport_Number,
License_Number, etc., are considered a candidate key.
PRESENTATION TITLE 4
3 .Super key: is an a tt rib u te s et th at can
u n iq u ely id en tify a tu p le. A s u p er key is a
s u p ers et of a can d id ate key.
For example: In th e ab ove EMPLOYEE t ab le,
for(EMPLOE E_ID, EMP LOYEE_NAME), th e n am e
of two emp loyees can b e th e s ame, b u t th eir
EMPLYEE_ID c an 't b e th e s ame. Hen ce, th is
comb in ation can als o b e a key.

4 . Foreign key: Foreign keys are th e colu mn of


th e tab le u s ed to p oin t to th e p rimary key of
an oth er tab le.
For exam ple:
Every emp loyee works in a s p ecific d ep ar tmen t
in a comp an y, an d emp loyee an d d ep artmen t
are two d ifferen t en tities . S o we c an 't s tore th e
d ep artmen t's in formation in th e emp loyee
tab le. Th at's wh y we lin k th es e two tab les
th rou gh th e p rimary key of on e tab le.
PRESENTATION TITLE 5
5 . Alternate key:Th ere may b e on e or more
att rib u tes or a comb in ation of at trib u tes th at
uniq u ely id en tify each tup le in a relation . Th es e
att rib u tes or comb in ation s of th e att rib u tes are
called th e can d id ate keys . On e key is ch os en as th e
p rimary key from th es e can d id ate keys , an d th e
remain in g can d id ate key, if it exis ts , is termed th e
altern ate key.
6 . Composite key: Wh en ever a p rimary key cons is ts
of more th an on e attrib u te, it is kn own as a
comp os ite key. Th is key is als o kn own as
Concaten ated Key.
For exam ple, in emp loyee relation s , we as s u me
that an emp loyee may b e as s ign ed mu ltip le roles ,
and an emp loyee may work on mu ltip le p rojects
s imu ltan eous ly. S o th e p rimary key will b e
comp os ed of all th ree at trib u tes , n amely Emp _ID,
Emp _role, an d Proj_ID in comb in ation .

PRESENTATION TITLE 6
THANK YOU

PRESENTATION TITLE 7

You might also like