7.36

Show that every schema consisting of exactly two attributes must be in BCNF regardless of the given set \(F\) of functional dependencies.


Let \(R = (A, B)\) be a schema with two attributes. Let \(F\) be a set of functional dependencies that hold on \(R\).

We want to show:- \(R\) is in BCNF.

Suppose to the contrary that \(R\) is not in BCNF. That is, there exists \(\alpha \rightarrow \beta\) in \(F^+\) that is not trivial and \(\alpha\) is not a superkey.

Since \(\alpha \subseteq R\) and \(\beta \subseteq R\), we know that, both \(\alpha, \beta \in \{ \{A\}, \{B\}, \{A,B\} \}\).

Therefore \(R\) is in BCNF.