Defining relationships

Joining Data in SQL

Maham Faisal Khan

Senior Content Developer, DataCamp

One-to-many relationships

A diagram showing three books (Persuasion, Pride and Prejudice, and Emma) connected to one author, Jane Austen.

Joining Data in SQL

One-to-many relationships

Joining Data in SQL

One-to-one relationships

A diagram showing that one fingerprint can only be associated with one traveler.

Joining Data in SQL

One-to-one relationships

Joining Data in SQL

Many-to-many relationships

A diagram showing that many languages can be associated with many countries, and many countries can be associated with one language. Belgium has three official languages: French, German, and Dutch. Conversely, languages can be official in many countries: Dutch is an official language of both the Netherlands and Belgium, but not Germany.

Joining Data in SQL

Let's practice!

Joining Data in SQL

Preparing Video For Download...