Which of the following keys should be one or more than one in a table?
-
Candidate key
-
Super key
-
Primary key
-
Both (1) and (2)
D
Correct answer
Explanation
Candidate keys are special subsets of superkeys that do not have any extraneous information in them. Each table may have one or more candidate keys. A superkey is a combination of attributes that can be uniquely used to identify a database record. A table might have many superkeys. Hence, both the options 1 and 2 are correct.