GATE Computer Science · Databases, Theory of Computation, and Compiler Design · medium

Consider a relation R(A, B, C) with functional dependencies F = {AB -> C, C -> B}. What is the highest normal form satisfied by relation R?

Published · Last updated · checked before publication — how we verify questions

Options

  • A3NF but not BCNF because C is not a superkey while B is a prime attributeCorrect answer
  • BBCNF because both AB and C are superkeys of relation R(A, B, C)
  • C1NF because non-prime attributes depend partially on candidate key AB
  • D2NF but not 3NF because B is a non-prime attribute transitively dependent on AB

Answer: A. 3NF but not BCNF because C is not a superkey while B is a prime attribute

The candidate keys of R are AB and AC (since (AB)+ = ABC and (AC)+ = ABC). Prime attributes are {A, B, C}. In C -> B, the determinant C is not a superkey, so R violates BCNF. However, the RHS attribute B is a prime attribute (part of candidate key AB), so C -> B does not violate 3NF. Thus R is in 3NF but not BCNF.

Why the other options are wrong

  • B. BCNF because both AB and C are superkeys of relation R(A, B, C) — C+ = {B, C} does not include A, so C is not a superkey and C -> B violates BCNF.
  • C. 1NF because non-prime attributes depend partially on candidate key AB — All three attributes A, B, and C are prime attributes (belonging to AB or AC), so there are no non-prime attributes.
  • D. 2NF but not 3NF because B is a non-prime attribute transitively dependent on AB — B is part of the candidate key AB, making B a prime attribute.

All Databases, Theory of Computation, and Compiler Design questions and the topic overview →

GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.