relational-algebra

Definition

Relation (Relational Algebra)

Let be domains. A relation is a set of tuples based on the Cartesian product of multiple, possibly identical, domains.

Example:

Schema

Definition

Schema (Relational Algebra)

A schema or 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).