Question

Given the following two statements:

S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF.
S2: AB→\toC, D→\toE, E→\toC is a minimal cover for the set of functional dependencies AB→\toC, D→\toE, AB→\toE, E→\toC.

Which one of the following is CORRECT?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2014 answer key

Solution

Evaluate relational database theory properties of binary relations and minimal covers of functional dependencies.

Evaluate Statement S1:
Let R(A,B)R(A, B) be any relation schema with two atomic attributes.

  • If no non-trivial FDs hold, the candidate key is {A,B}\{A, B\}, and all dependencies are trivial, so RR is in BCNF.
  • If A→BA \to B holds, the candidate key is AA. The LHS of the only non-trivial FD is a superkey, so RR is in BCNF.
  • Similarly if B→AB \to A holds, or both hold.
    Since every relation in BCNF is also in 3NF, 2NF, and 1NF, any binary relation with single-valued attributes is automatically in 1NF, 2NF, 3NF, and BCNF.
    Therefore, S1 is TRUE.

Evaluate Statement S2:
Original FD set F={AB→C,D→E,AB→E,E→C}F = \{AB \to C, D \to E, AB \to E, E \to C\}.
Notice that from AB→EAB \to E and E→CE \to C, we can infer AB→CAB \to C by transitivity. Thus AB→CAB \to C is redundant.
A minimal cover of FF would remove AB→CAB \to C, resulting in {D→E,AB→E,E→C}\{D \to E, AB \to E, E \to C\}.
The set given in S2 is {AB→C,D→E,E→C}\{AB \to C, D \to E, E \to C\}. In this set, we cannot derive AB→EAB \to E (closure (AB)+={A,B,C}(AB)^+ = \{A, B, C\}). Thus it is not even an equivalent cover for FF.
Therefore, S2 is FALSE.

Hence, S1 is TRUE and S2 is FALSE.

Final answer

A

Common trap

Believing that removing AB→EAB \to E preserves equivalence, whereas AB→EAB \to E is essential because EE cannot be derived from ABAB without it.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 1
Question
40 of 65, printed as CS Q.30
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.