Given:
R = (L, M, N, O, P)
Functional Dependencies:
F = { M → O, NO → P, P → L, L → MN }
Decomposition:
R1 = (L, M, N, P)
R2 = (M, O)
A. Lossless-Join Decomposition
For a binary decomposition R → R1, R2, the decomposition is lossless if:
(R1 ∩ R2) → R1 OR (R1 ∩ R2) → R2
Here,
R1 ∩ R2 = {M}
Now calculate M+:
M → O
Therefore,
M+ = {M, O}
Since R2 = (M, O),
M+ contains all attributes of R2.
Hence,
M → R2
Therefore, the decomposition is LOSSLESS-JOIN.
Answer: YES.
B. Dependency Preservation
We check each functional dependency:
1. M → O
Both M and O are present in R2.
Therefore, M → O is preserved.
2. P → L
Both P and L are present in R1.
Therefore, P → L is preserved.
3. L → MN
L, M and N are all present in R1.
Therefore, L → MN is preserved.
4. NO → P
N and P are in R1, but O is in R2.
There is no decomposed relation containing N, O and P together.
Also, NO → P cannot be derived from the projected dependencies of R1 and R2.
Therefore, NO → P is NOT preserved.
Hence, the decomposition is NOT dependency-preserving.
Dependency not preserved: NO → P.
C. Highest Normal Form
Consider R1 = (L, M, N, P).
The dependencies in R1 are:
P → L
L → MN
Find P+:
P+ = {P}
P → L
Therefore, P+ = {P, L}
L → MN
Therefore, P+ = {P, L, M, N}
Thus, P is a candidate key of R1.
Now consider:
L → MN
But L is NOT a superkey because:
L+ = {L, M, N}
P is not obtained.
Therefore, R1 is NOT in 3NF (and hence not in BCNF).
However, the candidate key P contains only one attribute.
Therefore, partial dependency is impossible.
Hence, R1 is in 2NF.
R2 = (M, O) has M → O, where M is a candidate key, so R2 is in BCNF.
Therefore, the highest normal form of the decomposition is:
2NF
FINAL ANSWERS:
A. Lossless-join decomposition: YES
B. Dependency-preserving: NO
Dependency not preserved: NO → P
C. Highest Normal Form: 2NF