Define candidate key, alternate key, composite key?

Answer Posted / shreyas joshi

Candidate key- A candidate key is defined as an attribute or
set(combination) of attributes that no 2 tuples(rows) in a
relation hold duplicate values of it.or we can say that a
candidate key is a kind of superkey, if whose subset taken
than it cannot be said as a superkey..in otherwords consider
a customer table with attributes(cust_id,cust_name,cust_street).
than candidate key is (cust_name,cust_street)(combination)
Now this is sufficient to uniquely identify an entity in a
table.But if its subset taken i.e alone cust_name or
cust_street, they individually cannot identify uniquely a
tuple or entity..IN short a candidate key is a superkey with
no super key as it subsets.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization? Explain different levels of normalization?

61206


Why does this query return 0?

791


What are the key features of dbms?

765


What are the three types of database design?

750


What is dbms explain in brief?

767


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?

715


What is an application role and explain a scenario when you would use one?

764


To convert IDMS to DB2, how to deal with IDMS occurs and redefined clause?

3722


What are the constraints on severity level in raiseerror?

756


How to generate OIDS

1897


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

1871


Explain about the hierarchical model of the database?

798


What is database design and development?

791


Which data type cannot be used as a parameter in a udf?

749


Explain about the storage and physical database design?

709