The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+21 votes
2.1k views

Given the following two statements: 

S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. 

S2: $AB \to C$. $D \to E$, $E \to C$ is a minimal cover for the set of functional dependencies $AB \to C$, $D \to E$, $AB \to E$, $E \to C$.

Which one of the following is CORRECT?

  1. S1 is TRUE and S2 is FALSE.
  2. Both S1 and S2 are TRUE.
  3. S1 is FALSE and S2 is TRUE.
  4. Both S1 and S2 are FALSE.
asked in Databases by Veteran (99.8k points) | 2.1k views
0
Here in question they have mentioned that the table contains two single valued attributes. But the table to be in 1NF, the attributes should be atomic and single valued. So, can we conclude that S1 is TRUE ???
0
how about a Relation R(A,B) with FD's like

A->B

B->A

? which normal form the table is in?
0
it is in BCNF form because both A and B are candidate keys ,uniquely defines table.Also there is no partial dependency and transitive dependencey

3 Answers

+23 votes
Best answer
(A) S1 is TRUE and S2 is FALSE.

A relation with 2 attributes is always in BCNF

The two sets of functional dependencies are not the same. can not derive $AD \to E$ from the 1st set
answered by Active (3.3k points)
selected by
+1
Suppose a two attribute table contains tuples like - {2,3}, {1,5},{2,4}, {2,3}. then this is clearly not in 1NF ?? so S1 should be false
+1
Every RDBMS table atleast is in 1NF.
+13 votes
Table with 2 single valued attributes will be in 1NF,

2NF because there can not be a partial key dependencies. Key can be 1 attribute or 2 attributes. If one is key then other can be dependent, if 2 attributes make key then it is trivial.

3NF, there is no question of Transitive dependencies.

BCNF, because if at all a dependency exists, the determinant will be a Key.
answered by (261 points)
+6 votes

S1 is true bcoz if there are only 2 attributes then relation is always in bcnf.

let R(A B) possible cases are:

(1) {A->B } here A is cand key so BCNF

(2) {B->A}  here B is cand key so BCNF

(3) { A->B  B->A} here A and B both are cand key so BCNF

​​​​​​​(4) no non-trivial FD's here AB is cand key so BCNF

S2 is false bcoz minimal cover should be { D->E , AB->E , E->C }

so ans is A

answered by Active (4.3k points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

38,009 questions
45,507 answers
131,661 comments
48,695 users