What Is The Difference Between Primary Key & Super Key

Answers were Sorted based on User's Feedback



What Is The Difference Between Primary Key & Super Key..

Answer / manoj

Primary Key is a column which uniquely identifies all records in a table. For example EmployeeID column in an Employee table.

If you add another column to a PK, like (EmployeeID+FirstName) it still identifies identifies all rows uniquely, is known as Super Key.

For more interview Questions on SQL Server: http://sqlwithmanoj.wordpress.com/interview-questions/

Is This Answer Correct ?    11 Yes 0 No

What Is The Difference Between Primary Key & Super Key..

Answer / tanmay dutta

Primary Key : Unique No. Not null.No duplicate.exam:Student_Id.
Super Key : Like (student_id + Student Name)

Is This Answer Correct ?    2 Yes 0 No

What Is The Difference Between Primary Key & Super Key..

Answer / anil kumar dubey

A candidate key that uniquely identifies a row in a table is called primary key.
A superkey (composite key) is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

what is isolation level at dead lock?

0 Answers   Verizon,


What part does database design plays a role in performance of an sql server-based application?

0 Answers  


Define Check points and End Points?

1 Answers  


can any one say how to update the following senario I have a table <srabank> in which the table structure is as follows ANAME ACCNO LOCATION ACCTYPE BAL SBanuPrakash 31518746291 Punganur deposit 4000 Sreenivas 31518746292 mahoobnagar current 14000 Ranjith 31518746293 Karimnagar Savings 2000 Giresh 31518746294 Chennai deposit 40000 Boo 31518746295 Chennai Savings 20000 Jay 31518746296 Valachari Savings 1000 tirumalraj 31518746297 Vellore Savings 8000 The senario is We need to select one account number and check the balance after checking the balance if the balance exist we need to transfer to another account . in the from account the amount need to be reduced and in the to account the amount needed to be added. for example for the <accountno> <31518746291> the balance is <4000> for the <accno> <31518746292> the balance is <14000> after transferring the balance the details will look as follows <accno><31518746291> <bal> <2000> <accno><31518746292> <bal> <16000> the above mentioned two statment will come under the final result.

3 Answers  


Difference between DELETE and TRUNCATE?

0 Answers   TCS,






What according to you is the difference between mysql and sql server performance?

0 Answers  


What is after dml trigger?

0 Answers  


explain different types of jions with examples briefly?

1 Answers   Zensar,


How can I get data from a database on another server?

0 Answers  


how will add additional conditions in sql?

0 Answers   Amdocs, Apps Associates,


What is difference between stored procedure and function?

3 Answers   L&T,


What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

11 Answers   World Tech, Yardi Software,


Categories