524 views

1 Answer

1 votes
1 votes

If a relation has only two attributes then it is in BCNF.

We say a relation $R$ is said to be in $BCNF$ if it has functional dependencies of the form $a \rightarrow b$ where either $a \rightarrow b$ is a trivial functional dependency or $'a'$ forms a superkey for the relation $R$.

Proof:

Let $a, b$ be the two attributes in a relation $R$. Then the possible functional dependencies are :

case 1: LHS(Determinant) contains both attributes : i.e. Possible FD is $a b$ $\rightarrow$--- Clearly this is a trivial functional dependency because RHS attributes form subset of LHS attributes .

Case 2 : LHS contains only one attribute :  i.e. The Non-trivial FD's are $a \rightarrow b$ Or $b \rightarrow a$ or Both ---- Clearly in this case, the LHS attribute will be candidate key.

Hence the possible functional dependencies (in case of Only Two attributes) are either trivial or the LHS attributes form a superkey. So, the relation having only two attributes will be in $BCNF$.

Related questions

2 votes
2 votes
2 answers
1
pradeepchaudhary asked Jun 8, 2018
1,813 views
Given: The Relation R(A,B,C,D,E) having (A,B) as Primary key. The set of functional dependencies: (A,C) >D , (B,D) >E. I want to Know whether the functional dependencies ...
0 votes
0 votes
1 answer
3
Mk Utkarsh asked Nov 24, 2017
606 views
Please explain with example how lossless decomposition into BCNF is possible but dependency preservating BCNF decomposition may not be possible for all relations?
0 votes
0 votes
2 answers
4