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

can a table be moved to different filegroup? : Sql server administration

710


What do you mean by data integrity?

783


How to create a local temporary stored procedure?

682


What do you understand by the data quality services in sql server?

691


What is transact-sql language?

750






How to connect sql server management studio express to sql server 2005 express?

747


What is a select query statement in ms sql server?

760


Tell me what is the difference between locking and multi-versioning?

757


What is the difference between update lock and exclusive lock?

663


What are parameterized reports? What are cascading parameters in ssrs reports?

129


What are a scheduled jobs?

695


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

734


What is executereader?

720


What do you understand by sql server agent?

683


How to access the inserted record of an event?

772