The different types of JOINs in Microsoft SQL Server - INNER, LEFT, RIGHT, FULL and CROSS

  Рет қаралды 20,053

SQL Server 101

SQL Server 101

3 жыл бұрын

Following on from last week's video, we will join two tables together.
Want more? My SQL Server Udemy courses are:
70-461, 70-761 Querying Microsoft SQL Server with T-SQL: rebrand.ly/querying-microsoft...
98-364: Database Fundamentals (Microsoft SQL Server): rebrand.ly/database-fundamentals
70-462 SQL Server Database Administration (DBA): rebrand.ly/sql-server-dba
Microsoft SQL Server Reporting Services (SSRS): rebrand.ly/sql-server-ssrs
SQL Server Integration Services (SSIS): rebrand.ly/sql-server-ssis
SQL Server Analysis Services (SSAS): rebrand.ly/sql-server-ssas-mdx
Microsoft Power Pivot (Excel) and SSAS (Tabular DAX model): rebrand.ly/microsoft-powerpiv...
----
In this video, we're going to learn about the different types of JOINs in Microsoft SQL Server. We'll discuss INNER, LEFT, RIGHT, FULL and CROSS JOINs, and how each one works.
If you're working with SQL Server tables and want to know how to best join data, then this video is for you! By the end of this video, you'll have a clear understanding of all the different types of JOINs and be able to use them to your advantage.
There are five different types of JOINS:
1. The INNER JOIN - this is the default JOIN. Only those rows in the two tables which match.
2. The LEFT JOIN - all of the left-hand table rows with only those in the right-hand table which matches.
3. The RIGHT JOIN - all of the right-hand table rows with those in the right-hand table which matches.
4. The FULL JOIN - all of the two table rows, taking account of matching.
5. The CROSS JOIN - all of the first table's rows against all of the second table's rows. This multiplies the two tables' rows, has not account of matching, and therefore is not often used.

Пікірлер: 10
@gaybarile4232
@gaybarile4232 10 ай бұрын
Thank you so much for this. I have watched other videos before but your explanation is the best. I have struggled to wrap my head around these join concepts for the longest time and finally I can say that I fully understand these now thanks to you. You are a fantastic teacher!
@SQLServer101
@SQLServer101 10 ай бұрын
You are so welcome! I'm glad it helped.
@hary0198
@hary0198 Жыл бұрын
great explanation even for me that already works many years, it's good to refresh my memory
@MyAfroBohemianHomestead
@MyAfroBohemianHomestead 2 жыл бұрын
Thank you so much! So easy to understand.
@nermaw
@nermaw 2 жыл бұрын
this the best video for join in SQL thank you very much for the effort .
@yonatanmesfin8545
@yonatanmesfin8545 2 жыл бұрын
People might not choose this because of low views but this is well explained thanks
@rizwanrauf9347
@rizwanrauf9347 Жыл бұрын
very well explained
@chishikiendeavourer8663
@chishikiendeavourer8663 2 жыл бұрын
Good explanation 👍
@akshayshelke738
@akshayshelke738 Жыл бұрын
not running same in my ssms
@SQLServer101
@SQLServer101 Жыл бұрын
Hi Akshay. It should do so. Please check the code and try again. Phillip
Joining strings in SQL Server: +, CONCAT, CONCAT_WS and STRING_AGG
11:50
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 62 МЛН
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 47 МЛН
The joker's house has been invaded by a pseudo-human#joker #shorts
00:39
Untitled Joker
Рет қаралды 5 МЛН
How to import data from Microsoft SQL Server into Microsoft Excel
14:51
SQL Joins: Difference Between Inner/Left/Right/Outer Joins
10:52
Learn SQL Joins
21:38
Decomplexify
Рет қаралды 42 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 109 М.
SQLite Backend for Beginners - Create Quick Databases with Python and SQL
13:32
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 1,2 МЛН
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 85 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 10 МЛН