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 |
Find nth lowest salary or get nth lowest salary?
How would we use distinct statement? What is its use?
How do I start sql server?
What is difference between view and materialized view?
How to know whether our backup is succesfully taken?
How send email from database?.
3 Answers CarrizalSoft Technologies, Merrill Lynch,
On a windows server 2003 active – passive failover cluster, how do you find the node which is active?
What are the purpose of Normalisation?
How does using a separate hard drive for several database objects improves performance right away?
What are the different types of triggers in SQL SERVER?
Does sql server 2000 full-text search support clustering?
How many types of database relationship in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)