• edited by
25,882 views
60 60 votes

Relation $R$ has eight attributes $\text{ABCDEFGH}$. Fields of $R$ contain only atomic values. $F = \{ CH$ $\rightarrow$ $G, A \rightarrow BC, B \rightarrow CFH, E \rightarrow A, F \rightarrow EG \}$ is a set of functional dependencies $(FDs)$ so that $F^+$ is exactly the set of $FDs$ that hold for $R$.

The relation $R$ is

  1. in $\text{1NF}$, but not in $\text{2NF}$.
  2. in $\text{2NF}$, but not in $\text{3NF}$.
  3. in $\text{3NF}$, but not in $\text{BCNF}$.
  4. in $\text{BCNF}$.

8 Answers

Best answer
83 83 votes
Here, candidate keys are $AD, BD, ED$ and $FD$.

Partial dependency exists  $A$ $\rightarrow$ $BC$, $B$ $\rightarrow$ $CFH$ and $F$ $\rightarrow$ $EG$ etc. In the following $FDs.$

For example partial dependency $\color{blue}{A \rightarrow C}$  exists in $A$ $\rightarrow$ $BC$ and $\color{blue}{B  \rightarrow C}$ and $\color{blue}{B\rightarrow H}$ in $B$ $\rightarrow$ $CFH$. etc.

So, given relation is in $\text{1NF}$ ,but not in $\text{2NF}$.

Correct Answer: $A$
• edited by
17 17 votes

Correct Answer: $A$

as in $F \rightarrow G$, $G$ is non-prime attribute but $F$ is a proper subset of a candidate key ( this problem is known as partial dependency , which is not allowed in 2 NF ).so violates 2 NF condition,
similarly , $B\rightarrow CH$ and  $A\rightarrow C$ also violates 2 NF condition,
hence $R$ is not in 2NF  but in 1NF. ( since attributes of relation $R$ has only atomic values - it is property of 1NF )

• edited by
5 5 votes

The given relation has 4 candidate keys $AD, BD, ED, FD$

Prime attributes : $A, B, D, E, F$

Non-Prime attributes : $C, G, H$

 

Lets check for $BCNF$ first

The very first FD i.e. $CH \to G$ is a violation to BCNF. 

$R$ is not in $BCNF$

 

Lets check for $3NF$

Again the very first FD $CH \to G$ is a violation to $3NF$, since $CH$ is not a super key and it determines a non prime attribute $G$

Transitive functional dependency : If $\alpha \to \beta$ and $\beta \to \gamma$ and  $\beta \not\to \alpha$ and $\gamma \not\in \beta$ and $\gamma \not\in \alpha$, then we can say $\alpha \to \gamma$ transitively.

$AD \to CH$ and $CH \to G$, so one of the candidate keys $AD$ transitively determines a non-prime attribute $G$. 

 

Lets check for $2NF$

Since the candidate key $BD$ determines all of the attributes of $R$ i.e. ${(BD)}^+ = R$, lets consider the third FD which is $B \to CFH$, let's take by RHS splitting $B \to CH$.

$BD \to CH$ is a violating partial dependency since $B$ fully determines $CH$. Hence 2NF is violated. 

 

OMG, it's not even in 2NF. 

So the given relation $R$ is in 1NF only.

Correct answer : $A$

 

• edited by
1 1 vote

according to definition given in Korth 

 A Functional Dependency $A → B$  Is Called A Partial Dependency if there is
a proper subset $C$ of $A$ such that $C → B$.We say that $B$ is partially dependent
on $
A.$

Here, candidate keys are $AD,BD,ED$ and $FD.$

So here Partial dependency are  $DA→BC, DB→CFH$

As we Can see Proper subset $A$ OF $DA$   And  Proper subset $B$ of $DB$ is there such that $A→ BC, B→CFH $

so we can say $BC$ is partially dependent on CK $DA$ and $CFH$  is partially dependent on CK $DB$

So, given relation is in 1NF,but not in 2NF.

• edited by
Answer:
Position:
Show:

Related questions

6 6 votes
0 0 answers
1.2k
1.2k views
Surajit Sadhukhan asked Aug 31, 2024
1,214 views
This post was deleted with below mentioned reason.
Delete Reason Name: All previous gate questions are already available in the site. See "Previous Years" tab in the Menu.
Delete Reason Note:
Has Author Submitted Revision Edit?: NOT YET
The submitted edit has been rejected. The post is hidden permanently.
Relation $R$ has eight attributes $ABCDEFGH$. Fields of $R$ contain only atomic values.$F=$ $\{\mathrm{CH} \rightarrow \mathrm{G}, \mathrm{A} \rightarrow \mathrm{BC}, \ma...
65 65 votes
5 answers 5 answers
23.2k
23.2k views
Arjun asked Sep 24, 2014
23,176 views
Relation $R$ has eight attributes $\text{ABCDEFGH}$. Fields of $R$ contain only atomic values. $F = \{ CH$ $\rightarrow$ $G, A \rightarrow BC, B \rightarrow CFH, E \right...
71 71 votes
3 answers 3 answers
23.4k
23.4k views
Arjun asked Sep 24, 2014
23,375 views
Consider the following relational schema.Students(rollno: integer, sname: string)Courses(courseno: integer, cname: string)Registration(rollno: integer, courseno: integer,...
67 67 votes
5 answers 5 answers
23.0k
23.0k views
Arjun asked Sep 23, 2014
22,977 views
An index is clustered, ifit is on a set of fields that form a candidate keyit is on a set of fields that include the primary keythe data records of the file are organized...