- 720p
- 540p
- 360p
- 0.50x
- 0.75x
- 1.00x
- 1.25x
- 1.50x
- 1.75x
- 2.00x
We hope you enjoyed this lesson.
Cool lesson, huh? Share it with your friends
About this lesson
Exercise files
Download this lesson’s related exercise files.
INNER JOIN59.2 KB INNER JOIN - Solution
59.5 KB
Quick reference
INNER JOIN
Inner Join allows us to pull data from another table.
When to use
Use it when you want to pull data from a table that has something in common with your current table.
Instructions
SELECT [Last Name], [Blue Widget]
FROM [dbo].[Current_Customers]
INNER JOIN [dbo].[Orders] ON [Current_Customers].[Customer ID] = [Orders].[Customer ID]
This will display the last name and number of blue widgets purchased by each customer ID. The Customer ID is what each table you are using INNER JOIN on have in common.
If both tables did not have a Customer ID column, this INNER JOIN would not work. In the next 3 modules we cover other types of Joins (Outer, Left, Right).
Hints & tips
- Inner Join lets you pull data from a table that has something in common with your current table.
Lesson notes are only available for subscribers.