A relation is the mathematical construct that underlies the concept of a table in relational database theory. They provide the theoretical foundation for the relational model.
A relation schema
Each attribute
A relation instance (or simply a relation)
The degree (or arity) of a relation is the number of attributes
Because a relation is defined as a set, the following properties hold:
In informal usage, a relation is called a table, a tuple is called a row, and an attribute is called a column. Strictly, a table may permit duplicate rows and ordered columns, while a relation does not.
| Formal Term | Informal Equivalent |
|---|---|
| Relation | Table |
| Tuple | Record |
| Attribute | Field |
| Domain | Data Type |
Relations are manipulated through relational algebra, which defines a set of closed operations (each operation takes one or more relations as input and produces a relation as output).