IT lexicon › Database › Relationship

Relationship

Database På svenska → Updated: 2026-11-10

A connection between two tables in a relational database, typically implemented via foreign keys.

In relational databases, relationships express associations between entities — a customer has many orders, an order belongs to a customer. Relationships are implemented through foreign keys: a column in the orders table points to a row in the customers table. Relational databases understand these connections and can optimize joins across tables. Unlike hierarchical and network databases — where relationships were hardcoded into the storage schema — relational relationships are flexible and changeable without altering storage.

← Back to the lexicon