# Relational Data Modeling - Relationship

In a relational model, as a relation (generally a table) can model:

Therefore, a relationship between two relations is not always a relations between two entities.

cardinality define the type of relationships between two relations.

Because most of database only support one-to-many relationships, it is necessary to implement other relationships physically via a third junction table (association table).

## Type

Mapping: Information about the number of entities in each entity set which is allowed in a relationship set is indicated by specifying 1, m, % in the diagram

In a data model, two main relationship are used :

but you can found other types as :

• optional on one side one-to-one

To describe precisely the type of relationship in a data model, you use the cardinality.

## Relationship table

The following tables are the most common tables that holds a relationship:

Every table with a foreign key holds a relationship.

Discover More
Logical Data Modeling - One-to-Many cardinality

One-to-many is also known as : to-many Many-to-one Primary Key-Foreign Key Relationships Parent-Child A many-to-one relationship is where one entity contains values that refer to another entity...
Logical Data Modeling - Relationship

A relationship is a model element that relates two entities . In its simple form (semantic form), it's a description that has a verb such as: has consists of uses ... entityentity setrelationship...
Relational Data Modeling

This section is data Modeling applied to a relational structure (mostly table). Relational databases normalize data, removing as much duplication as possible. A relational database’s approach to...
Relational Data Modeling - Cardinality

The cardinality is way to define the relationship between two relation in a data model : one-to-one optional on one side one-to-one one-to-many many-to-many ... Cardinalities further describe...
Relational Data Modeling - Database Normalization

Normalization is a logical data base design method. Normalization is a process of systematically breaking a complex table into simpler ones. It is built around the concept of normal forms. Database normalization...
Relational Data Modeling - Entity-Relationship Diagram (ERD)

The entity-relationship (E-R) diagram is a diagram that helps visualize relational data models and shows relationships between relation (ie the entities) ER modeling technique was first developed by Peter...
Relational Data Modeling - Many-to-many Relationship (Two-way relationship)

A many-to-many relationship is a relationship (an m:n mapping) between two relation A and B in which : A may contain a parent row for which there are many children in B and vice versa. normalized...
Relational Data Modeling - One-to-One Relationship

A one-to-one relationship is a relational relationship that is equivalent to the set bijection relationship This relationship describe that one row from a relation point to exactly one row to the other...
Relational Data Modeling - Recursive Relationship

recursion relationship in a relational data model You just pretend that the recursive relation is between two tables: the real one and a virtual copy. In this case, a manager table and an...