relational-algebra

Definition

Relation

Let be domains. A relation is a tuple based on the cartesian product of multiple, possibly identical, domains.

Example:

Schema

Definition

Schema (Relational Algebra)

A schema of a relation describes the structure of data in a relation and is denoted as or as .

The notation is defined as follows:

where is an attribute of with domain .

Example:

Link to original

Lossless Decomposition

Lossless Decomposition

A decomposition of a relation into two relations , is called lossless if all attributes of are preserved. Thus, can be reconstructed using a natural join between and :

Lossless decomposition can be defined in the context of functional dependencies. A decomposition is called lossless if at least one of the following functional dependencies can be derived:

  1. (closure).
  2. (closure).