Define candidate key, alternate key, composite key?

Answer Posted / viresh rajput

primary key:- The attribute or combination of attributes
that uniquely identifies a row or record.

Foreign Key:- an attribute or combination of attribute in a
table whose value match a primary key in another table.

Composite key:- A primary key that consistsof two or more
attributes is known as composite key

candidate key:-A candidate key uniquely identifies the rows
in a table.there can be more than 1 candidate key in a
table, in which one should be a primary key.


Alternate Key:- Any of the candidate keys that is not part
of the primary key is called an alternate key.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data modelling techniques?

525


What is database design and development?

601


Explain about post-relational databases?

581


What is normalization? Explain different levels of normalization?

59817


How would you design a database for an online site, which would average a million hits a day?

576






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

590


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?

576


Who are naive users?

606


Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.

1603


On friday, you issued several insert statements using query analyzer. You then verified the data had been correctly entered with a select statement on monday, your users report that the data is not there what happened?

565


How to customize error conditions.

1701


explain detail about ftp in datastage?

1812


There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?

1989


Explain about the storage and physical database design?

532


Why does this query return 0?

623