Question 31Asked in UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)

Consider the following database table having A, B, C and D as its four attributes and four possible candidate keys (I, II, III, IV) for this table:

Consider the following database table having A, B, C and D as its four attributes and four possible candidate keys (I, II, III, IV) for this table: A | B | C | D a₁ | b₁ | c₁ | d₁ a₂ | b₂ | c₃ | d₂ a₃ | b₃ | c₁ | d₃ I: {B} II: {B, C} III: {A, D} IV: {C, D} If different symbols stand for different values in the table (e.g., d₁ is definitely not equal to d₂), then which of the above could not be the candidate key for the database table?
  1. AI and III only
  2. BIII and IV only
  3. CII only
  4. DI only
Show answerHide answer

Correct answer: (C) II only

Explanation

Attribute B has distinct values in all tuples, so {B} can be a candidate key, and {B, C} is then only a superkey (not minimal), because a candidate key is a minimal superkey. {A, D} and {C, D} have distinct values in all tuples, so both can be candidate keys. Hence only II could not be a candidate key.

From UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions)

This is question 31 of UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.