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
What is index, cluster index and nonclustered index?
What is normalization and what are the advantages of it?
What is sql server agent and what are the two modes of authentication in sql server?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
How to create indexed view?
What command must you use to include the not null constraint after a table has already been created?
How to deploy the Report?
What is exporting utility?
What are database states in ms sql server?
Explain full-text indexing?
How to modify existing triggers using "alter trigger"?
How to add the custom code in Report?
What is user-defined inline table-valued function?
Define constraints and give an example of their use?
I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that