Computer Science, asked by Ishanbro5682, 8 months ago

Explain the Candidate key and Alternate key with the help of an example.

Answers

Answered by vatsala4
5

Answer:

Candidate Key: The minimal set of attribute which can uniquely identify a tuple is known as candidate key. For Example, STUD_NO in STUDENT relation. The value of Candidate Key is unique and non-null for every tuple. There can be more than one candidate key in a relation..

alternate key:An alternate key is a key associated with one or more columns whose values uniquely identify every row in the table, but which is not the primary key. For example, where the primary key for a table may be the employee id, the alternate key might combine the first, middle, and last names of the employee.

Similar questions