Database Relationships: an overview
The three kinds of relationship between tables (one-to-many, one-to-one and many-to-many) and how a diagram shows each.
Apprentice · SQL · Database · Updated
Tables are linked to each other through relationships. There are three different types of theoretical relationships in a database.

- One-to-Many: a row in a parent table can be related to many rows in a related child table

- One-to-One: a row in a parent table can be related to only one row in a related child table

- Many-to-Many: multiple rows in one table can be related to multiple rows in another. In this scenario, both tables act as both parent and child.