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

Explain about xml databases?

864


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

828


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?

753


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?

782


In which table collections errors are stored.

2172


What is dbms and its application?

787


Explain about network model?

811


What are the three basic rules which are to be followed for the relational model of the database?

797


Write short notes on manual refreshes.

2526


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

811


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

803


What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?

823


What is the database development process?

973


Explain what a database is?

835


You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?

858