retagged by
9,974 views
12 votes
12 votes

In a relational data model, which one of the following statements is $\text{TRUE}?$

  1. A relation with only two attributes is always in $\text{BCNF}.$
  2. If all attributes of a relation are prime attributes, then the relation is in $\text{BCNF}.$
  3. Every relation has at least one non-prime attribute.
  4. $\text{BCNF}$ decompositions preserve functional dependencies.
retagged by

2 Answers

Best answer
22 votes
22 votes

Option A : A relation with only two attributes is always in BCNF

let relation R(A,B), then possible FD’s are

  1. A → B, in this case A is minimal Superkey, So this relation should be in BCNF
  2. B → A, in this case B is minimal Superkey, So this relation should be in BCNF
  3. AB → AB , in this case AB is minimal Superkey, So this relation should be in BCNF

So, given statement is Correct.

Alternatively we can think like, We can’t further divide a relation which had only two attributes, then it must be in BCNF.

 

Option B : If all the attributes of a relation are Prime attributes, then the relation is in BCNF

classic counter example : R(A,B,C) with FD set = {AB → C, C → A}

in this relation all attributes are prime but this relation is not in BCNF due to “ C → A ”

Correct statement is : If all the attributes in the relation are Prime attributes, then it is in 3NF.

 

Option C : Every relation has at least one non-prime attribute

counter example : R(A,B,C) with FD set = {AB → C, C → A}

in this relation all attributes are prime

Correct statement is : Every relation has atleast one prime attribute.

 

Option D : BCNF decompositions preserve functional dependencies

for any relation, we can guarentee there exist atleast one decomposition which is in 3NF, lossless and Dependency Preserving. But we can not guarentee that atleast one decomposition which is BCNF, lossless and Dependency Preserving.

 

Option A is correct

edited by
2 votes
2 votes

Option A is true.

proof of option A: https://stackoverflow.com/questions/33455459/how-is-every-binary-relation-bcnf

For option B ,

Counter example https://gateoverflow.in/167899/If-every-attribute-of-r-is-prime-attribute-then

Option C,

It is also false As,

R(a,b,c) is a relation and The FD set is { a->b,b->c,c->a}

Now the candidate keys for the relation are a,b,c.

And it is fine even the Relation is in BCNF.

So option C is also false.

Option D is false as we know BCNF is lossless but does not preserve Functional dependency. 

 

Answer:

Related questions

15 votes
15 votes
1 answer
1
Arjun asked Feb 15, 2022
8,609 views
Consider a relation $R (A, B, C, D, E)$ with the following three functional dependencies.$AB \rightarrow C; \; BC \rightarrow D; \; C \rightarrow E;$The number of superke...