Definitioncore
Multivalued dependency
Also called MVD.
X ->> Y holds when, for each value of X, the Y values and the values of the other attributes combine freely as a cross product.
A multivalued dependency says that, within each group of tuples with the same value, the values are independent of the values of the remaining attributes. It is the exact condition under which a relation splits without loss into two projections that share , by Heath's theorem in Fagin's form. The normalization page uses MVDs only as the reason for 4NF, and BCNF sees only functional dependencies. This page defines MVDs, gives their equivalent forms and the rules for reasoning with them, and shows how they differ from FDs.
Definition
Let be a finite set of attributes, let , and let , where means . We use set semantics: a relation over is a finite set of tuples.
Definition (Fagin 1977). A relation over satisfies the multivalued dependency if for any two tuples with , there is a tuple with
Applied to the pair as well, the rule asks for both "swaps" of the part and the part of two tuples that agree on .
Equivalent forms. For a relation over , the following are equivalent:
- satisfies .
- . This is Fagin's theorem, proved on the Heath's theorem page.
- For each value of in , with , the set of pairs equals . The values and the values that occur with combine as a full cross product.
Form 2 says that an MVD is the join dependency with two components. Form 3 gives the name: determines a set of values, not one value, and that set does not depend on the rest of the tuple.
Trivial MVDs. is trivial if or . A trivial MVD holds in every relation over : for take , and for take . Every other MVD fails in some relation with two tuples.
Dependence on the whole schema. Whether holds depends on , so on all of , while an FD involves only the attributes in . If satisfies and , then satisfies : restrict , and to . The other way fails: on the MVD is trivial, so it holds in for every , also when it fails in . An MVD that is required only on a projection, , is called an embedded MVD, and it is a different and harder kind of constraint.
Examples and non-examples
- Independent facts. lists, for each course, its teachers and its textbooks, which are chosen independently. The relation
satisfies and, by complementation, . No nontrivial FD holds. Each teacher is stored once for each book, which is the redundancy that 4NF removes.
- Non-example: one tuple missing. Remove . Then and agree on , but no tuple has Jones with Date, so fails, and so does .
- Every FD is an MVD. If satisfies and , then has , so satisfies . The converse fails, as shows.
- A larger right side does not give a smaller one. Over , the relation
satisfies and , but not and not : the first two tuples would need . For FDs, implies . For MVDs this decomposition rule fails. Its projection on does satisfy , as the rule for projections says.
- Trivial cases. and over hold in every relation.
Related definitions
-
Inference rules (Beeri, Fagin and Howard 1977). With , the rules below, together with Armstrong's axioms for FDs, are sound and complete for implication of FDs and MVDs together:
- complementation: from infer ;
- reflexivity: if , infer ;
- augmentation: from and infer ;
- transitivity: from and infer ;
- replication: from infer ;
- coalescence: from , , and infer .
From these follow the union, intersection and difference rules: from and infer , and .
-
Dependency basis (Beeri 1980). For a set of FDs and MVDs and a set , the sets with are closed under union, intersection and difference, so the sets among them are the unions of the blocks of one partition of . This partition is the dependency basis of . Beeri computes it in polynomial time, which decides implication of an MVD or an FD by . The chase decides the same question with a tableau.
-
Join dependency. An MVD is the two-component case of a join dependency. Some relations are the join of three projections but satisfy no nontrivial MVD.
-
Tuple-generating dependency. An MVD asks for a tuple built from and , so it is a full tuple-generating dependency. An FD asks for equal values, so it is an equality-generating dependency.
-
Fourth normal form. A schema is in 4NF if the left side of each nontrivial MVD that holds is a superkey.
References
- Ronald Fagin, Multivalued dependencies and a new normal form for relational databases, ACM Transactions on Database Systems 2(3), 262 to 278 (1977), the definition of multivalued dependencies, the lossless split into XY and XZ, and fourth normal form
- Catriel Beeri, Ronald Fagin and John H. Howard, A complete axiomatization for functional and multivalued dependencies in database relations, Proceedings of the 1977 ACM SIGMOD International Conference on Management of Data, 47 to 61 (1977), the inference rules for FDs and MVDs together and their completeness
- Catriel Beeri, On the membership problem for functional and multivalued dependencies in relational databases, ACM Transactions on Database Systems 5(3), 241 to 259 (1980), the dependency basis and a polynomial-time test for implication of FDs and MVDs
- Serge Abiteboul, Richard Hull and Victor Vianu, Foundations of Databases, Addison-Wesley (1995), Chapter 8 (functional and join dependency), multivalued dependencies, their inference rules and the chase
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag X1WTJN Edit this page History Report an error Markdown