SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Skills:
SQL Analytics90%
Key Takeaways
This video tutorial covers the concept of Left Outer Join in SQL, including its syntax, usage with ON and USING clauses, and examples using SQL Developer.
Full Transcript
what's up internet how you doing I'm back once again with another SQL tutorial and this tutorial is all about left outter join I made the last tutorial in a real hurry so please don't be angry if you found that tutorial difficult to understand then comment below and let me know I'll make that tutorial again after all whatever I'm doing on this YouTube channel is to help all you guys only but don't dislike that tutorial please okay so let's start today's tutorial we will be using both the same table for example EMP and D which we created in the last tutorial and I will try to make this tutorial as easy to understand as possible this time we will start with the syntax of left outter join first we have our selected statement where you can specify column names from all those table which are participating in your join query and these column names are followed by keyword from then we have our join clause which is the left outer joint and on both the side of our join clause we have our tables which are the source and Target table as we are talking about left outer joint thus the table which is on the left side of our joint Clause is the source table and the one on the right side is the target table followed by our joint Clause we have our joint condition basically we have two types of joint condition that we can use one at a time but never together these two joint conditions are on and using uses of each joint condition depend on certain conditional parameters don't worry we will discuss it as we go and at the end of syntax we have our wear and order by clause note here if you are using order by Clause then it must be the last statement of the QD before jumping over SQL Developer and start writing the cery let's once again take a look at the second line of our syntax which is our join Clause so that I can clear the concept of source and Target table first of all the designation of source table depend on the type of outer joint you are working with here we are working with left outer joint thus the table which is on the left side of our joint Clause is the source table and the one on the right side of the joint close is the target table this thing will be the opposite if we were using right outer joint since we are working with the left outer joint condition hence all the records of all the columns from the left side table or the source table will be a part of our result whereas only those record from the right side table or the target table that satisfy the join condition will be the part of the result in other words only the records of the target table are checked against the join condition by SQL engine and the source table is taken as it is now let's jump over SQL Developer and do our first cury first let's check the structure of our EMP and D table here is the structure of our EMP table EMP table has three column EMP ID EMP name and EMP salary where EMP ID column is is a primary key now let's check the structure of D table here is the structure of D table it also has three column D ID D name and EMP ID here D ID is the primary key and EMP ID is a foreign key now let's write our first Cy this cury is really simple in the first line we are selecting employee name from EMP table and Department name from the D table in the second line we have our join Clause you can either write left outer joint or just write left joint both are permissible and have the same meaning as well as perform the same task means this outer is totally optional if you want you can delete it and simply write left join and our join condition here is in the third line and is fairly simple as we are comparing value of EMP ID column of EMP table with the value of EMP ID column in the D table let's execute the cury before that let's clear this output here is our result let's have an in-depth look of the result for better understanding of the left outer joint here as you can see these are EMP and D table where D is our source table and EMP is our Target table now let's come to our result table as you can can see all the column records from The Source table is returned in a result regardless of the Fulfillment of join condition as for the Target table you can see here that only those record that fulfill the joint condition are being returned for example EMP ID one of the target table match the EMP ID one of the source table to return the corresponding EMP name Steve similarly EMP ID to match return return NY as the result and so on since the last record do not fulfill the join condition hence null is returned this means that we will be having all the records of D name column in a result set but only those record from EMP name column which will satisfy the join condition hope things are clear now let's jump ahead and try the same cury with using Clause here in this cury we used on join condition and in expression we supplied column which share same name and same data type similarly we can use on joint condition with the column which doesn't have same name but same data type you can use any column in the onjoin condition until they have same data type name of the column doesn't matter here let's quickly modify this query let's use D ID column of D table and EMP ID of EMP table although both have different name yet they have same data type which is number to demonstrate this I'll select this cury and paste it here and let's clear this output panel and we will change this EMP ID from D ID now let's execute this query and here is our result now let's jump over using join condition let's clear this output panel and let's give a comment let's make some space so that you people can see okay for this once again we will require our first query where we use on join condition with EMP column of the both table here is the cury we use using join condition when column participating in join cury have same name and same data type here as you can see we are using EMP ID column of both the table since both have same name and same data type second when joint query satisfy the equ joint condition hope you remember that a joint query satisfy the equ join condition only when we compare columns in join condition using equal to comparison operator here as you can see we have used equal to operator for comparing the value of EMP ID column of EMP table and D table thus we can say this is an equ join cury in simple word when the column in join condition share same name and same data type and are compared only using equal to comparison operator and no other comparison operator such as greater than less than Etc then we can use using joint condition thus here we have to remove this on joint condition in order to use using joint condition as we can use only one joint condition at a time in a quy so here we will write our using join condition delete this on join condition and write in using join condition unlike on join condition we just have to supply the column name which is common in both the table which here is the EMP ID that's all we have to do let's execute here is our result as you can see the result of our query where we use on condition with the EMP ID column and this query is the same hope now the concept of outer join is clear this time I try to make this concept as easy as possible but still if you have doubts you can contact me for that you can either email me your doubt or comment below you can also connect with me on my social media all the contact information is in the description box hope you enjoyed watching please help me in reaching out to more people by sharing my videos on your social media like my video by clicking Thumbs Up Button this motivates me a lot to make more such videos you can also comment your feedback thanks we'll see you soon with another skl tutorial this is Manish
Original Description
SQL Tutorial Include
Left Outer Join Syntax explanation
Left Outer Join With ON clause
Left Outer Join With USING clause.
Website: http://www.RebellionRider.com
Previous tutorial (Right Outer Join): http://youtu.be/aiiDEzvkMRk
Tool used in this tutorial is SQL Developer.
This tutorial series is part of SQL expert exam certification training. if you are preparing for SQL certification you can use my tutorials. This SQL Tutorial is a part of free training.
Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage
https://copy.com?r=j7eYO7
Contacts
E-Mail
RebellionRiderYT@gmail.com
Twitter
https://twitter.com/rebellionrider
Instagram
http://instagram.com/rebellionrider
Facebook.
https://www.facebook.com/imthebhardwaj
Linkedin.
http://in.linkedin.com/in/mannbhardwaj/
Thanks for liking, commenting, sharing and watching more of our videos
This is Manish Sharma from RebellionRider.com
Playlist
Uploads from Manish Sharma · Manish Sharma · 34 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
▶
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma
More on: SQL Analytics
View skill →Related Reads
📰
📰
📰
📰
Most Senior Backend Engineers Are Not Actually Good at Making Decisions
Medium · Programming
Connection Storms — When Your PHP App Reconnects All At Once
Medium · Programming
This Week In PHP Internals | August 26, 2026
Dev.to · Len Woodward
Debugging Async/Await Deadlocks in JavaScript – A Step‑by‑Step Guide
Dev.to · Deep Fix
🎓
Tutor Explanation
DeepCamp AI