Direction: Answer question based on the problem statement given below:
Assume that given table R is decomposed in two tables R 1(A, B, C) with functional dependency set f 1= {A → B, A → C} and R 2(A, D, E) with FD set F 2= {A → D, D → E}
R 1is in 3 NF and R 2is in 2 NF
This problem involves analyzing a database relation that has been decomposed into two sub-relations and determining their normalization forms (2NF and 3NF) and checking for the dependency preservation property.
We are given a universal relation R(A, B, C, D, E) with the functional dependency set F: ${A \rightarrow BC, D \rightarrow E, BC \rightarrow D, A \rightarrow D}$. The relation R is decomposed into two tables: R1(A, B, C) with functional dependency set F1 = ${A \rightarrow B, A \rightarrow C}$, and R2(A, D, E) with functional dependency set F2 = ${A \rightarrow D, D \rightarrow E}$. We need to evaluate the given options regarding this decomposition.
The functional dependencies for R1 are F1 = ${A \rightarrow B, A \rightarrow C}$.
Since ${A}^{+}$ contains all attributes (A, B, C), A is a candidate key for R1. As A is the only attribute on the left side of any dependency in F1 that can determine all others, A is the only candidate key.
Now, let's check the normalization forms for R1:
R1 is in 2NF.
Therefore, R1 is in 3NF.
The functional dependencies for R2 are F2 = ${A \rightarrow D, D \rightarrow E}$.
Since ${A}^{+}$ contains all attributes (A, D, E), A is a candidate key for R2. A is the only candidate key.
Now, let's check the normalization forms for R2:
R2 is in 2NF.
Because of the transitive dependency $A \rightarrow E$ via D, R2 is not in 3NF.
Dependency preservation means that the union of the functional dependencies in the decomposed relations is equivalent to the original set of functional dependencies (or their closure). That is, $F_{1} \cup F_{2}$ should be equivalent to F.
Original FDs: F = ${A \rightarrow BC, D \rightarrow E, BC \rightarrow D, A \rightarrow D}$.
Decomposed FDs: F1 = ${A \rightarrow B, A \rightarrow C}$, F2 = ${A \rightarrow D, D \rightarrow E}$.
Let's check if we can derive all original FDs from F1 $\cup$ F2 = ${A \rightarrow B, A \rightarrow C, A \rightarrow D, D \rightarrow E}$.
Since ${BC}^{+}$ does not contain D, the dependency $BC \rightarrow D$ from the original set F is not preserved in the decomposition.
Based on our analysis:
Let's look at the given options:
| Option | Statement | Evaluation |
|---|---|---|
| 1 | Dependency preservation property is followed | False, because $BC \rightarrow D$ is not preserved. |
| 2 | R1 and R2 are both in 2 NF | True. R1 is in 3NF (hence 2NF) and R2 is in 2NF. |
| 3 | R2 is in 2 NF and R3 is in 3 NF | R3 is not defined in the problem. Assuming it refers to R1, the statement R2 is in 2NF and R1 is in 3NF is True. |
| 4 | R1 is in 3 NF and R2 is in 2 NF | True. Our analysis shows R1 is in 3NF and R2 is in 2NF. |
Options 2, 3 (assuming R3 is R1), and 4 all seem to contain true statements based on our analysis. However, multiple-choice questions typically have only one best or intended answer. The provided correct answer text is "R 1is in 3 NF and R 2is in 2 NF", which exactly matches Option 4. While R2 being in 2NF and R1 being in 3NF is also true (Option 3 with assumption), Option 4 specifically combines R1 being in 3NF and R2 being in 2NF, which is a precise statement of their highest achieved normal forms among 2NF and 3NF.
Based on the detailed analysis of R1 and R2 regarding 2NF and 3NF:
Therefore, the statement "R1 is in 3 NF and R2 is in 2 NF" is true.
| Normal Form | Requirements | Explanation |
|---|---|---|
| 1NF (First Normal Form) | Attributes must be atomic. No repeating groups. | Each cell in the table contains a single value. All attributes are simple and take atomic values. |
| 2NF (Second Normal Form) | Must be in 1NF. No partial dependencies of non-prime attributes on any candidate key. | If a relation has a composite candidate key, non-prime attributes must depend on the entire key, not just a part of it. For relations with simple keys, 1NF implies 2NF. |
| 3NF (Third Normal Form) | Must be in 2NF. No transitive dependencies of non-prime attributes on any candidate key. | A non-prime attribute should not be dependent on another non-prime attribute. Key → Non-Key → Non-Prime is not allowed. |
When decomposing a relation, two desirable properties are Dependency Preservation and Lossless Join.
This decomposition (R1, R2) is lossless join but not dependency preserving.
Let R (ABCDEFGH) be a relation schema and F be the set of dependencies F = {A → B, ABCD → E, EF → G, EF → H and ACDF →EG}. The minimal cover of a set of functional dependencies is
In a database, a rule is defined as (P1 and P2) or P3? R1 (0.8) and R2 (0.3), where P1, P2, P3 are premises and R1. R2 are conclusions of rules with certainty factors (CF) 0.8 and 0.3 respectively. If any running program has produced P1, P2, P3 with CF as 0.5, 0.8. 0.2 respectively, find the CF of results on the basis of premises.
Minimal cover F’ of functional dependency set F is
Identify the redundant functional dependency in F
Identify primary key of table R with functional dependency set F