Define candidate key, alternate key, composite key?

Answer Posted / manumole

Candidate key:

Candidate keys for a table includes the set of columns
which satisfies the criteria of a primary key.

Primary key : a column/combination of columns which
uniquely identifies a row and whose values are not null.

Clustered Key:when a combination of columns becomes a
primary key it is called as clustered key.

Alternate keys:the set of columns which is avialble in the
candidate keys and are not selected as primary key.

Eg:Customer table
candidate keys:{ CustomerID, MobNo(defined as not null) }

primary key: if Db designer selected as CustomerID,then
Alternate key is MobNo
Clustered key:if both combination CustomerID- MobNo is
taken as primary key,it is nothing but a clustered key

Is This Answer Correct ?    24 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write short notes on manual refreshes.

2291


Which four data types cannot be used as a return type from a user-defined function?

581


What are the 18 schemas?

613


What are the main phases of database development?

540


How can you log an error to the server event log from a stored procedure?

559






You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

525


What is data modeling with example?

531


What is a database development?

522


Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card

1675


Explain about network model?

589


Hi , any one can help me on the same,this is regarding the Informatica Function doc,i want to know how developer is will develop the mapping. pl forwar the any function doc .just for my references. svlc75@yahoo.co.in

1587


What is DB Development software?

1616


If a column is an image value type, how you can compare column values? How can you use this column in join clause?

594


How you can make a parameterized view?

558


What is dbms explain in brief?

565