• edited by
2,341 views
10 10 votes

​​Consider a database relation $\text{R}$ with attributes $\text{ABCDEFG}$, and having the following functional dependencies:

\[
\mathrm{A} \rightarrow \mathrm{BCEF} \quad \mathrm{E} \rightarrow \mathrm{DG} \quad \mathrm{BC} \rightarrow \mathrm{~A}
\]
Which of the following statements is/are correct?

  1. $\mathrm{A}$  is the only candidate key of $\mathrm{R}$ 
  2. $\mathrm{A}, \mathrm{BC}$ are the candidate keys of $\mathrm{R}$ 
  3. $\mathrm{A}, \mathrm{BC}, \mathrm{E}$ are the candidate keys of $\mathrm{R}$ 
  4. Relation $\mathrm{R}$ is not in Boyce-Codd Normal Form $\text{(BCNF)}$

2 Answers

4 4 votes

\( R( A, B, C, D, E, F, G ) \)\[A \rightarrow BCEF\]\[E \rightarrow DG\]\[BC \rightarrow A\]


 

\[BC \rightarrow A\]

\( A \rightarrow BCEF \),

\[BC^+ = \{ A, B, C, E, F \}\]

\( E \rightarrow DG \),\[BC^+ = \{ A, B, C, E, F, D, G \}\]

Since \( BC^+ \) contains all attributes of \( R \), \( BC \) is a candidate key.

\[A \rightarrow BCEF\]\( E \rightarrow DG \),\[A^+ = \{ A, B, C, E, F, D, G \}\]

Since \( A^+ \) contains all attributes of \( R \), \( A \) is a candidate key.


 

A relation BCNF if for every functional dependency \( X \rightarrow Y \), \( X \) is a superkey.

 

\[A \rightarrow BCEF\]\[E \rightarrow DG\]\[BC \rightarrow A\]

 

\( E \rightarrow DG \) is a dependency where \( E \) is not a candidate key or a superkey (since \( E^+ = \{ E, D, G \} \neq R \)). Since this violates BCNF, the relation is \textbf{not in BCNF}.
 

0 0 votes

R(A, B, C, D, E, F)

Functional Dependencies : A -> BCNF; E -> DG; BC -> A

 

Step 1 :- Find Candidate Keys

(A)⁺ = {A, B, C, D, E ,F, G} // A is Candidate Key 

(BC)⁺ = {B, C, A, E, F, G, D} // BC is Candidate Key

(E)⁺ = {E, D, G} // E is not a Candidate Key

∴ Candidate Key = {A, BC} // Satisfied Option B

 

Step 2 :- Check whether it is in BCNF form or not

A -> BCNF => A is a Super Key (BCNF satisfied)

E -> DG => E is neither a Super Key nor it follows Trivial Dependency (Y ⊆ X).

∵ E -> DG violated BCNF rules,

∴ It is not in BCNF // Satisfied Option D

 

Correct Answer :


B) A, BC are the candidate keys of R. 

D) Relation R is not in Boyce-Codd Normal Form (BCNF)

Answer:
Position:
Show:

Related questions

8 8 votes
6 6 answers
3.9k
3.9k views
Arjun asked Feb 27, 2025
3,877 views
Suppose that insertion sort is applied to the array $[1,3,5,7,9,11, x, 15,13]$ and it takes exactly two swaps to sort the array. Select all possible values of $x$.$10$$12...
10 10 votes
4 4 answers
2.0k
2.0k views
Arjun asked Feb 27, 2025
1,980 views
Consider the following two relations, named $\text{Customer}$ and $\text{Person},$ in a database:Person ( aadhaar CHAR(12) PRIMARY KEY, name VARCHAR(32)); Customer ( name...
6 6 votes
5 5 answers
3.5k
3.5k views
Arjun asked Feb 27, 2025
3,462 views
Consider the following tables, $\text{Loan}$ and $\text{Borrower},$ of a bank.\[\begin{array}{|c|}\hline\textbf{Loan} \\\hline\begin{array}{c|c|c}\textbf{loan\_number} & ...