RUVIDEO
Поделитесь видео 🙏

Inner vs Outer Joins SQL Server

Published on Jul 27, 2017:
In this video, we will learn about inner vs outer joins for sql Server.
We can join two tables on the basis of common key between them.
1. Inner Join- Gives us all the records where the joining key between both the tables has matching values in both the tables.
Outer Joins
2. Left Join or Left Outer Join- Gives us all the records for the table on the left hand side of the join. It gives us all records in the other table that have a matching key with the first table. For non matching values, sql server will set the column values to null for table on the right hand side of the join
3. Right Join or Right Outer Join- Is the exact opposite of the left join
4. Full Join- Gives us all records from both the tables.


Please find below the queries used in the video.
--Inner join
Select * from
dbo.TableA
inner join
dbo.TableB
on
tableA.EmployeeId=TableB.EmployeeId

--Left join
Select * from
dbo.TableA
left join
dbo.TableB
on
tableA.EmployeeId=TableB.EmployeeId

--right join
Select * from
dbo.TableA
right join
dbo.TableB
on
tableA.EmployeeId=TableB.EmployeeId

--full join
Select * from
dbo.TableA
full join
dbo.TableB
on
tableA.EmployeeId=TableB.EmployeeId

Previous Video: https://youtu.be/qek6g9MtqiQ

SUBSCRIBE to learn more about Power BI,Power Query, Power Pivot, Excel and SQL Server!
https://www.youtube.com/channel/UCYYHFZpm5GbaOmQKDNSTGLw



Download the sample database used for the demo here: https://goo.gl/SVyVmT

Our Playists:
SQL Playlist :https://goo.gl/PS5Ep6
DAX PlayList : https://goo.gl/S4W41D
Power BI PlayList: https://goo.gl/dXxvnB
Power Query Playlist: https://goo.gl/5QS7P4


ABOUT DAGDOO:
Website:
Home Page: http://www.dagdoo.org/
Power BI Tutorials: http://www.dagdoo.org/excel-learning/tutorial-power-bi-desktop/


Questions? Comments and SUGESTIONS? You will find me here:

Twitter: @dagdooe

Category: Science & Technology
License: Standard YouTube License

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Inner vs Outer Joins SQL Server», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.