LEFT OUTER JOIN | LEFT JOIN | OUTER JOIN | SQL JOIN

Published: 02 February 2021
on channel: Tech Point Fundamentals
680
16

LEFT OUTER JOIN | LEFT JOIN | OUTER JOIN | SQL JOIN

The OUTER JOIN is an extension of INNER JOIN or EQUI JOIN. By using the outer join we can retrieve both matching and non-matching data from the tables. OUTER JOIN is classified into three categories:

1. LEFT OUTER JOIN
2. RIGHT OUTER JOIN
3. FULL OUTER JOIN

In this video, we will see the LEFT OUTER JOIN with a real example.

LEFT OUTER JOIN returns the matching data from both the tables and non-matching data from the left table also. The non-matching data of the right table take the default NULL value in this case.

SELECT
U.Name,
U.Email,
U.MobileNumber,
ISNULL(R.Name, 'Unknown') AS RoleName

FROM [User] U
LEFT OUTER JOIN UserRole UR ON U.Id = UR.UserId
LEFT OUTER JOIN [Role] R ON UR.RoleId = R.Id

Instead of the full name of the join, you can also use LEFT JOIN only. The result will be the same:

SELECT
U.Name,
U.Email,
U.MobileNumber,
ISNULL(R.Name, 'Unknown') AS RoleName

FROM [User] U
LEFT JOIN UserRole UR ON U.Id = UR.UserId
LEFT JOIN [Role] R ON UR.RoleId = R.Id


Subscribe to our YouTube Channel:    / @techpointfundamentals  
Visit our Website for more Articles: https://www.techpointfunda.com

Recommended Videos Playlists:
============================================================
SQL Videos Playlist: https://www.youtube.com/embed/videose...
C# Interview Questions and Answers Videos Playlist: https://www.youtube.com/embed/videose...
Visual Studio Tips and Tricks Videos Playlist: https://www.youtube.com/embed/videose...
Interview Questions and Answers Videos Playlist: https://www.youtube.com/embed/videose...
C# Videos Playlist: https://www.youtube.com/embed/videose...
C# 8 Videos Playlist: https://www.youtube.com/embed/videose...


Recommended SQL Videos:
============================================================
SELF JOIN video:    • SELF JOIN | EQUI JOIN | ANSI JOIN | SQL JO...  
EQUI JOIN and NON-EQUI JOIN video:    • EQUI JOIN | NON-EQUI JOIN | NON-ANSI JOIN ...  
ANSI JOIN and NON-ANSI JOIN video:    • ANSI JOIN | NON-ANSI JOIN | EQUI JOIN | SQ...  
INNER JOIN or DEFAULT JOIN video:    • INNER JOIN | DEFAULT JOIN | EQUI JOIN | AN...  

Recommended C# Interview Questions Videos:
============================================================
Sealed Method Interview Questions and Answers videos:    • Sealed Method Interview Questions and Answ...  
Sealed Class Interview QA Video:    • Sealed Class Interview Questions and Answe...  
Static Class Interview QA Video:    • Static Class Interview Questions and Answe...  
Abstract Class vs Interface Video:    • Abstract Class Vs Interface C# 8 | Differe...  

Recommended C# Videos:
============================================================
Shadowing or Method Hiding video:    • Shadowing in C# | Method Hiding in C# | Te...  
Virtual Methods and Method Overriding video:    • Virtual Methods in C# | Method Overriding ...  
Abstract Class and Methods video:    • Abstract Class C# | Abstract Method C# | T...  
Sealed Class Video:    • Sealed Class and Sealed Methods in C# | Te...  
Static Class Video:    • Static Class, Static Constructor and Stati...  
Sealed Interface Method Video:    • Interface Member Modifiers with live Examp...  
Virtual Interface Method Video:    • Interface Virtual Members in C# 8 | Virtua...  
Partial Classes Video:    • Partial Classes with Real Examples in C# |...  
Partial Methods Videos:    • Partial Classes and Methods with live Exam...  


Follow Us on Social Media Platforms:
============================================================
Follow us on Facebook:   / techpointfundamentalsofficials  
Visit our Facebook Page:   / techpointfundamentals  
Join our Facebook Interview Questions and Answers Group:   / interviewpreparationbytechpoint  
Join our Facebook IT Group:   / itechfunda  

Follow us on LinkedIn:   / techpointfundamentals  
Join our LinkedIn Interview Questions and Answers Group:   / 13906177  

Follow us on Telegram: https://t.me/TechPointFundamantals
Join our Telegram Interview Questions and Answers Group: https://t.me/InterviewQuestionsAndAns...

Follow us on VK: https://vk.com/techpointfundamentals
Join our VK Interview Questions and Answers Community: https://vk.com/interviewquestionsanda...

Follow us on Twitter:   / techpointfunda  
Follow us on Pinterest:   / techpointfundamentals  
Follow us on Instagram:   / techpointfundamentals  
Follow us on Mix: https://mix.com/techpointfundmentals
Follow us on Tumblr:   / techpointfundamentals  


On this page of the site you can watch the video online LEFT OUTER JOIN | LEFT JOIN | OUTER JOIN | SQL JOIN with a duration of hours minute second in good quality, which was uploaded by the user Tech Point Fundamentals 02 February 2021, share the link with friends and acquaintances, this video has already been watched 680 times on youtube and it was liked by 16 viewers. Enjoy your viewing!