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
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.
More Databases, Theory of Computation, and Compiler Design questions
- Which two statements regarding formal language classes and bottom-up LR parsers are always true? (Select two.)
- Consider a relation schema R(A, B, C, D, E) with the functional dependency set F = {AB -> C, C -> D, D -> B, D -> E}…
- Consider two concurrent transactions T1 and T2 in schedule S: R1(X), W2(X), W1(Y), R2(Y). Which two statements about…
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.