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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the methods used to protect against sql injection attack?

691


Give an example of SQL injection attack ?

636


Give main differences between "Truncate" and "Delete".

671


You want your report to display a hyperlink that will take users to your intranet. How do you configure such a hyperlink?

268


What is truncate table?

629






What is table level trigger?

667


What is the difference between implicit and explicit transaction?

642


What are the general features of sql server management studio? : sql server management studio

670


What are the types of database recovery models?

673


What is the command dbcc checkdb used for?

615


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

644


Can a trigger be created on a view?

651


What is normalization of database?

678


What is the process of normalising?

689


What is order of B+tree?

761