Database Management System Vivek More Docs
Database Management System Vivek More Docs
M.S.B.T.E.
Evolution sheet for Micro Project
Title of Project:-
Marks out of 4
Marks out of 6 Total
for
for mars
Roll No Name of students performance
performance in out
in oral/
group activity of 10
Presentation
53 Vivek More
07 Digvijay Wadekar
38 Shubham Deokar
51 Tushar Mutkule
Name and
Signature of Ms.Vhawal H. N.
faculty
SVERI’s COLLEGE OF ENGINEERING (POLYTECHNIC), PANDHARPUR.
CERTIFICATE
(Ms. Lokhande.D.T)
Guide
(Ms. Malgonde. R. K) (Dr. Misal N. D.)
HOD Principal
Place: Pandharpur
Date: / /
Acknowledgement
Attribute Stu_Name alone cannot be a primary key as more than one students can have
same name.
Attribute Stu_Age alone cannot be a primary key as more than one students can have same
age.
Attribute Stu_Id alone is a primary key as each student has a unique id that can identify the
student record in the table.
Note: In some cases an attribute alone cannot uniquely identify a record in a table, in that
case we try to find a set of attributes that can uniquely identify a row in table. We will see the
example of it after this example.
SUPER KEY:
Definition of Super Key in DBMS: A super key is a set of one or more attributes
(columns), which can uniquely identify a row in a table. Often DBMS beginners get confused
between super key and candidate key, so we will also discuss candidate key and its relation
with super key in this article.
How candidate key is different from super key?
Answer is simple – Candidate keys are selected from the set of super keys, the only thing we
take care while selecting candidate key is: It should not have any redundant attribute. That’s
the reason they are also termed as minimal super key.
Super keys: The above table has following super keys. All of the following sets of super key
are able to uniquely identify a row of the employee table.
{Emp_SSN}
{Emp_Number}
{Emp_SSN, Emp_Number}
{Emp_SSN, Emp_Name}
{Emp_SSN, Emp_Number, Emp_Name}
{Emp_Number, Emp_Name}
Lets select the candidate keys from the above set of super keys.
Note: Any key such as super key, primary key, candidate key etc. can be called composite
key if it has more than one attributes.
Composite key Example
Lets consider a table Sales. This table has four columns (attributes) – cust_Id, order_Id,
product_code & product_count.
DBA (Database administrator) can choose any of the above key as primary key. Lets say
Emp_Id is chosen as primary key.
References
Alternate key in DBMS (beginnersbook.com)
Advantages of Database Management System - GeeksforGeeks
Types of constraints - IBM Documentation