Define candidate key, alternate key, composite key.

Answer Posted / swapna

A candidate key is one that can identify each row of a
table uniquely. Generally a candidate key becomes the
primary key of the table. If the table has more than one
candidate key, one of them will become the primary key, and
the rest are called alternate keys.

A key formed by combining at least two or more columns is
called composite key.

Is This Answer Correct ?    348 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a bit datatype?

554


Would you store your query in a ssrs report or a database server? State the reason why?

108


What are xml indexes?

521


How to recreate an existing index in ms sql server?

538


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

645






Determine when an index is appropriate?

552


What is difference statement and preparedstatement?

542


What is a hint?

575


How to provide column names in insert statements in ms sql server?

598


How to add a new dsn with the odbc driver for sql server?

540


Write a program using SQL queries to find a unique entry in a table.

536


Give the query of getting last two records from the table in SQL SERVER?

533


Why are you getting errors when creating a new odbc dsn?

577


Explain the types of indexes.

629


Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

570