Introduction
An association represents the relationship between tables. There are two main types of associations: unidirectional and bidirectional. We will take a look at how to use associations with an example.
There are four main well-known types of relationships:
- One-to-one
- One-to-many
- Many-to-one
- Many-to-many
There are multiple ways to achieve these relationships.