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 |
What are the types of model in sql server and explain
What are the options which must be set to allow the usage of optimistic models?
Define left outer join?
On a windows server 2003 active – passive failover cluster, how do you find the node which is active?
What is model database? : SQL Server Architecture
how can i store resumes in database?
How exceptions can be handled in sql server programming?
What is the use of “join” in sql server?
How to include text values in sql statements?
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
What is the use of floor function in sql server?
how you can move data or databases between servers and databases in sql server? : Sql server administration