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
Explain about xml databases?
Which four data types cannot be used as a return type from a user-defined function?
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?
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?
In which table collections errors are stored.
What is dbms and its application?
Explain about network model?
What are the three basic rules which are to be followed for the relational model of the database?
Write short notes on manual refreshes.
If a column is an image value type, how you can compare column values? How can you use this column in join clause?
What is an application role and explain a scenario when you would use one?
What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?
What is the database development process?
Explain what a database is?
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?