1,437 views
0 0 votes

If table is has only two  coloumns,in which normal form would it be? 

5 Answers

Best answer
1 1 vote

2 columns means 2 attributes , A relation R with two attributes then R will always  in BCNF

let R (A,B)

1) A → B  ⇒ BCNF (becoz A+={A,B}, A is super key )

2) B → A   ⇒ BCNF (becoz B+={A,B}, B is super key )

3) A → B ,B → A  ⇒ BCNF (here A and B are super key )

4) NO non trivial dependency   ⇒ BCNF (becoz trivial FD's are always implied)

• selected by
3 3 votes
2 columns means 2 attributes.   A relation with 2 attributes  is always BCNF.  

Bcz for testing conditions  of BCNF says  that left hand side should be a candidate  key of every relation of the relational table .So this condition  will always  satisfy in this case.

And when bigger one satisfies  , we will never go for checking  smaller one . They will always satisfied.
1 1 vote

IF RELATION CONSIST OF ONLY TWO COLUMNS(ATTRIBUTE) SAY P & Q THEN 'PQ' TOGETHER WILL HAVE DISTINCT VALUES FOR EACH TUPLE .

E.G

ROLL NO.(P) NAME (Q)
1 NIRAJ
2 NIRAJ
3 SURAJ

EVEN THOUGH COLUMN CAN HAVE DUPLICATES BUT TOGETHER THEY MUST BE UNIQUE.

I.E EITHER P->Q OR Q->P WILL MUST BE VALID (IN GIVEN EXAMPLE P->Q). WHICH SATISFY THE CONDITION OF BCNF THAT LEFT HAND SIDE SHOULD BE A SUPERKEY.

SINCE ONLY TWO NON TRIVIAL RELATIONS I.E P->Q AND Q->P ARE POSSIBLE WITH TWO ATTRIBUTE .OUT OF WHICH AT LEAST ONE WILL BE TRUE . HENCE RELATION WILL ALWAYS BE IN BCNF

0 0 votes
If only 2 columns are there we cannot have problems of 1,2 and 3 NF.It is always BCNF
Position:
Show:

Related questions

0 0 votes
0 0 answers
110
110 views
krishna_panjiyar 1 asked Jul 27
110 views
Design an ER schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two-year congressional session. The databas...
0 0 votes
0 0 answers
275
275 views
GO Classes asked Feb 17
275 views
Find correct query for counting Teamsize.SQL Query $1$ SQL Query $2$ SQL Query $3$ SQL Query $4$  
1 1 vote
0 0 answers
263
263 views
GO Classes asked Feb 17
263 views
Consider two relations $R$ and $S$ with attributes $p$ and $s$.The following tuple relational calculus (TRC) query is given:\[\{\, t \mid t \in R \ \land\ (\exists z \in...
0 0 votes
0 0 answers
232
232 views
GO Classes asked Feb 17
232 views
Relational Algebra Question.The query was like, $\pi (\sigma\dots\bowtie\dots)\bowtie(\sigma\dots\bowtie\dots)$Asking : no. of tuples in output.zero tuple one tuple two t...