← RGPV CS-502-CBGS DBMS June 2020 solved question paper
RGPV CS-502-CBGS | June 2020 | Q3(b) | 7 marks
Question: Differentiate Multivalued dependency and Join dependency.
Answer
A multivalued dependency (MVD) X ↠ Y holds in a relation R when, for a fixed X value, the possible Y values are independent of the values of the remaining attributes Z=R−(X∪Y). If two tuples agree on X, exchanging their Y and Z components must produce tuples that also belong to the relation.
For example, StudentSkillLanguage(Student, Skill, Language) may store independent skills and languages. If Asha knows Java and Python and speaks Hindi and English, all four combinations occur. The MVD Student ↠ Skill holds, as does Student ↠ Language. Decomposing into StudentSkill and StudentLanguage eliminates redundant combinations and is lossless.
A join dependency (JD) *(R1,R2,…,Rn) holds on R if every legal instance of R equals the natural join of its projections onto R1,R2,…,Rn. It generalizes the idea of lossless decomposition to multiple relations. For example, SupplierPartProject may be decomposable into SupplierPart, SupplierProject and PartProject if the business rule states that a triple is valid exactly when all three pairwise associations are valid. Without this rule, the join may generate spurious triples.
An MVD is equivalent to a special two-component join dependency on XY and XZ. General join dependencies can involve three or more components and cannot always be expressed as MVDs. Fourth normal form requires every nontrivial MVD to have a superkey determinant. Fifth normal form requires every nontrivial join dependency to be implied by candidate keys.
Both dependencies express constraints on legal relation instances, not merely patterns observed in one sample table. They guide lossless decomposition and reduce redundancy.
| Aspect | MVD | JD |
|---|---|---|
| Notation | X ↠ Y | *(R1,…,Rn) |
| Decomposition | Two projections | Two or more projections |
| Normal form | 4NF | 5NF |
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion