hi,i want t0 knom d syntax for a super key with an example



hi,i want t0 knom d syntax for a super key with an example..

Answer / shikha

PersonID
PersonID + LastName
PersonID + FirstName
PersonID + DOB
PersonID + LastName + FirstName
PersonID + LastName + DOB
PersonID + FirstName + DOB
PersonID + LastName + FirstName + DOB
LastName + FirstName + DOB
All of these will uniquely identify each record, so each
one is a superkey. Of those keys, a key which is comprised
of more than one column is a composite key; a key of only
one column is a simple key.

A candidate key is a superkey that has no unique subset; it
contains no columns that are not necessary to make it
unique. This table has 2 candidate keys:

PersonID
LastName + FirstName + DOB
Not all candidate keys make good primary keys: Note that
these may work for our current data set, but would likely
be
.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More SQL Server Interview Questions

What are the types of model in sql server and explain

2 Answers   TCS,


What are the options which must be set to allow the usage of optimistic models?

0 Answers  


Define left outer join?

0 Answers  


On a windows server 2003 active – passive failover cluster, how do you find the node which is active?

0 Answers  


What is model database? : SQL Server Architecture

0 Answers  






how can i store resumes in database?

3 Answers   HCL,


How exceptions can be handled in sql server programming?

0 Answers  


What is the use of “join” in sql server?

0 Answers  


How to include text values in sql statements?

0 Answers  


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

0 Answers  


What is the use of floor function in sql server?

0 Answers  


how you can move data or databases between servers and databases in sql server? : Sql server administration

0 Answers  


Categories