When working with SQL, you'll learn to join two tables together so you can get data from both of the tables.

But what about joining 3 tables?

This is possible to do in SQL. It works in a similar way to joining two tables and can be extended to join to 4 or 5 or many more tables.

In this video, you'll learn how to join 3 tables together in an SQL query, and follow a step-by-step example of a query that does this.

Joining to 3 tables is needed because most databases have data spread across many tables. This is done to improve the consistency of data and reduce duplication. You'll often need to join multiple tables together to get the data you want.

Once you learn how to join three tables together in SQL, you can follow the same steps to join even more tables together. You may eventually start working on complex queries that have 5 or 10 or even 20 tables, so knowing how to join 3 tables is the first step.

If you want to read an article on joins, take a look at my guide to SQL Joins, which explains all of the join types and includes many examples: https://www.databasestar.com/sql-joins/

/// RESOURCES
Get my free SQL Cheat Sheets for Oracle, SQL Server, MySQL, and Postgres here: https://www.databasestar.com/get-sql-cheat-sheets/ 
SQL Roadmap: an overview of SQL topics, which is a great place to start: https://www.databasestar.com/sql-roadmap/ 

Subscribe: https://www.youtube.com/@DatabaseStar/featured 

#sql 

How to Join 3 Tables Together in an SQL Query
5.00 GEEK