• recategorized
4,681 views
2 2 votes

Consider a schema $R(MNPQ)$ and functional dependencies $M\rightarrow N, P\rightarrow Q$. Then the decomposition of  $R$ into $R_{1} \left (MN \right )$ and  $R_{2} \left (PQ \right )$ is __________.

  1. Dependency preserving but not lossless join
  2. Dependency preserving and lossless join
  3. Lossless join but not dependency preserving
  4. Neither dependency preserving nor lossless join.

5 Answers

Best answer
5 5 votes

R(MNPQ) and functional dependencies M→N, P→Q. Then the decomposition of R into R1(MN) and R2(PQ) 

here clearly the dependencies are preserved but they are not lossless as both R1 and R2 cannot be formed back again as they donot have a common attribute which is a key so answer is 1

• selected by
3 3 votes
Here as only M->N and P->Q is there, and decomposition is also in MN and PQ

so it is Not Loseless

and all dependency are also preserved

so 1 is correct answer here
3 3 votes

OPTION 1 Since there is no common attribute in the decomposed table so when we join it there will be some spurious(Extra) tuple so itwill be lossy.But the dependencies are preserved.

2 2 votes
The condition for the decomposition to be lossless is that the common attribute(s) between the decomposed relation(s) should be the "key" in at least one of the decomposed relations. Since this is not true for the given decomposition, the decomposition is not lossless.

The dependencies are well preserved as  $M\rightarrow N$  is applicable for relation $R_{1}$  and  $P\rightarrow Q$  is applicable for relation  $R_{2}$ and their union gives original functional dependencies set.

$\therefore$  Option A is correct.
0 0 votes

Lossless Join Property:
A decomposition is considered lossless if we can reconstruct the original relation by natural joining the decomposed relations without any loss of information(i.e. without any addition of spurious tuples).

The criterion for a decomposition \( R \) into \( R_1 \) and \( R_2 \) to be lossless is:
\( R_1 \cap R_2 \) must be a superkey for either \( R_1 \) or \( R_2 \).

In this case, \( R_1(M, N) \) and \( R_2(P, Q) \) have no common attributes (i.e., \( R_1 \cap R_2 = \emptyset \)). Therefore, the decomposition cannot be lossless, as there is no common attribute to act as a key in either \( R_1 \) or \( R_2 \).

Dependency Preserving Property:
A decomposition is considered dependency preserving if all functional dependencies of the original relation can be enforced in the decomposed relations without requiring a join of the decomposed relations.

The given functional dependencies are:
1. \( M \to N \)
2. \( P \to Q \)

In \( R_1(M, N) \), the dependency \( M \to N \) can be enforced.

In \( R_2(P, Q) \), the dependency \( P \to Q \) can be enforced.

Since each dependency can be enforced in one of the decomposed relations, the decomposition preserves dependencies.

In short,
The decomposition of \( R \) into \( R_1(M, N) \) and \( R_2(P, Q) \) is:
Dependency preserving but not lossless join.

Option A is Correct
Dependency preserving but not lossless join.

Suggestion Note:

The criterion that for a decomposition \( R \) into \( R_1 \) and \( R_2 \) to be lossless, \( R_1 \cap R_2 \) must be a superkey for either \( R_1 \) or \( R_2 \), should only be used to check binary decompositions. For non-binary decompositions, the Chase Test is a more suitable method.

Answer:
Position:
Show:

Related questions

1 1 vote
2 answers 2 answers
2.1k
2.1k views
go_editor asked Mar 24, 2020
2,113 views
An attribute $A$ of datatype varchar $(20)$ has value 'Ram' and the attribute $B$ of datatype char $(20)$ has value 'Sita' in oracle. The attribute $A$ has ________ memor...
1 1 vote
3 answers 3 answers
3.0k
3.0k views
go_editor asked Mar 24, 2020
2,994 views
Integrity constraints ensure that changes made to the database by authorized users do not result into loss of data consistency. Which of the following statement(s) is (ar...
7 7 votes
5 answers 5 answers
5.2k
5.2k views
go_editor asked Mar 24, 2020
5,225 views
Let $M$ and $N$ be two entities in an $E-R$ diagram with simple single value attributes. $R_{1}$ and $R_{2}$ are two relationship between $M$ and $N$, where as $R_{1}$, i...
0 0 votes
3 3 answers
3.6k
3.6k views
go_editor asked Mar 24, 2020
3,644 views
The order of a leaf node in a $B^{+}$ tree is the maximum number of children it can have. Suppose that block size is $1$ kilobytes, the child pointer takes $7$ bytes long...