Join dependency

In database theory, a join dependency is a constraint on the set of legal relations over a database scheme.

is subject to a join dependency if

can always be recreated by joining multiple tables each having a subset of the attributes of

, the join dependency is called trivial.

The join dependency plays an important role in the fifth normal form (5NF), also known as project-join normal form, because it can be proven that if a scheme

are restricted to a join dependency on

Another way to describe a join dependency is to say that the relationships in the join dependency are independent of each other.

Unlike in the case of functional dependencies, there is no sound and complete axiomatization for join dependencies,[1] though axiomatization exist for more expressive dependency languages such as full typed dependencies.

[2]: Chapter 8  However, implication of join dependencies is decidable.

[3] 2-ary join dependencies are called multivalued dependency as a historical artifact of the fact that they were studied before the general case.

More specifically if U is a set of attributes and R a relation over it, then R satisfies

Given a pizza-chain that models purchases in table Order = {order-number, customer-name, pizza-name, courier}.

The following relations can be derived: Since the relationships are independent there is a join dependency as follows: *((order-number, customer-name), (order-number, pizza-name), (order-number, courier)).

This makes it obvious that just having a join dependency is not enough to normalize a database scheme.