Question discussion

A relation R(A, B, C, D) has A as its only candidate key. How many superkeys does R have?

2140Medium DSSSB TGT Computer Science 0 replies 1 views
0

A relation R(A, B, C, D) has A as its only candidate key. How many superkeys does R have?

  • A4
  • B15
  • C8
  • D16
Correct answer: C

Explanation

Every superkey must contain A, and each of the other 3 attributes can be present or absent, giving 2³ = 8 superkeys.

Discussion 0

Nobody has replied yet. Start the discussion!