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

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?

527


How is data stored in dbms?

527


What are the types of database model?

550


State the acid rules?

686


How you can make a parameterized view?

561






Write short notes on manual refreshes.

2294


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2013


The count() function always returns a int value type what should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?

580


Explain about network model?

591


What are the main phases of database development?

542


Explain about query and reporting.

1694


Explain what a database is?

615


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

3441


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

585


Explain about the relational database?

613