In
database theory
Database theory encapsulates a broad range of topics related to the study and research of the theoretical realm of databases and database management systems.
Theoretical aspects of data management include, among other areas, the foundations of qu ...
, a multivalued
dependency is a full constraint between two sets of attributes in a
relation.
In contrast to the
functional dependency
In relational database theory, a functional dependency is a constraint between two sets of attributes in a relation from a database. In other words, a functional dependency is a constraint between two attributes in a relation.
Given a relation '' ...
, the multivalued dependency requires that certain
tuple
In mathematics, a tuple is a finite ordered list (sequence) of elements. An -tuple is a sequence (or ordered list) of elements, where is a non-negative integer. There is only one 0-tuple, referred to as ''the empty tuple''. An -tuple is defi ...
s be present in a relation. Therefore, a multivalued dependency is a special case of ''tuple-generating dependency''. The multivalued dependency plays a role in the
4NF database normalization.
A multivalued dependency is a special case of a
join dependency In database theory, a join dependency is a constraint on the set of legal relations over a database scheme. A table T is subject to a join dependency if T can always be recreated by joining multiple tables each having a subset of the attributes of ...
, with only two sets of values involved, i.e. it is a binary join dependency.
A multivalued dependency exists when there are at least three
attributes (like X,Y and Z) in a
relation and for a value of X there is a well defined set of values of Y and a well defined set of values of Z. However, the set of values of Y is independent of set Z and vice versa.
Formal definition
The formal definition is as follows:
Let
be a
relation and let
and
be sets of attributes. The multivalued dependency
("
multidetermines
") holds on
if, for any legal relation
and all pairs of tuples
and
in
such that