SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider

Manish Sharma · Beginner ·🤖 AI Agents & Automation ·12y ago

Key Takeaways

Explains Full Outer Join in SQL with examples and syntax

Full Transcript

what's up internet I'm Manish from Rebellion rider.com and I'm back once again with another SQL tutorial but first of all a heartfelt thank to all my viewers and subscriber you people are really amazing since last two videos we are concentrating over outer joint and so far we have done right and left outer joint the only one which is left now is full outer joint yes you guessed correctly today's skill tutorial is about full outer joint before moving ahead just want to say in order to better understand the concept of full outro please watch my last two tutorial over right and left out to join for your convenience I'll put the link of both these tutorial in the description box below be happy and enjoy watching okay let's jump over SQL Developer and start the tutorial okay once again we will be using same table which we have used so far in this outer joint series these are EMP and D tables let's have a quick look of a structure and the data of these two TBL our table EMP has three column EMP ID EMP name and EMP salary here column EMP ID is a primary key table D also has three column D ID D name and EMP ID here in this table column D ID is a primary key where column EMP ID is a foreign key reference from the EMP table now let's have a look at the data of these two table EMP table has five rows where column one has EMP ID 1 1 2 3 4 and 5 and column two has EMP name Steve Nancy guu Alan and Julia and column three consist the salary of these employees now data of DP table table D also has five column column 1 hold D ID again 1 2 3 4 and five where column two has D name sales account Finance it and marketing and column three EMP ID which is the foreign key has only three records corresponding to Department name sales account and finance we can interpret this data easily for example the employee with employee ID 1 is named Steve in our EMP table and works in department of sales similarly employee with employee ID 2 is Nancy who works in account department and employee with employee ID 3 is Guru who works in finance also we have not assigned any employee ID for Department of it and marketing which signifies that no one works in these Department I think the table's structure and its data are clear now so now it's time to jump over our topic full outer joint full outer joint is kind of combination of both right outer joint and left after joint because it returns all the rows from left as well as right side table let's have a look of full after joint syntax syntax is pretty similar to a left or right outer joint as you can see we have our selected statement where you can specify the name of the columns from both the participating tables followed by from clause and our join clause which is full outer joint here you can either write full outer joint or just full join since both are permissible and perform the same task and then we have our join condition on and using followed by where and order by Clause okay now without wasting much time let's do our first query okay once again we are on our SQL Developer let's do our first cury yes we are going to perform full outer joint with on Clause let's write the cury here in this cury we are selecting EMP name column from EMP table and D name column from D table in our full outer joint Clause we have EMP table on left side and D table on right side and then we have our on Clause where we are comparing the value of EMP ID columns from both the tables let's execute if you will observe minutely then you can see that the result till row five is similar to that of right outer joint as all the records from right side table is here and only those record from left side table which satisfy the join condition are here in this result followed by all the remaining record from the table does the last row six and seven contain the remaining EMP name here in this on join Clause we used column which have same name and data type now let's use column which have different name and same data type for example column D ID let's copy this query and modify its on Clause let's execute here is our result perfect five column now let's check out full outer joint with using Clause let me clear this output panel we use using joint condition when the column in joint condition share the 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 so let's copy our first query and modify it as you can see in the join condition of this cury we have used EMP ID column of both the table this column share the same name and same data type hence we can easily replace this on Clause with using Clause let's do it now let's execute this query here is our result if you compare this result with the result of our first query then you will will find them as exactly the same you can also limit the result by using we Clause say you want to see the name of only those employees and their departments who have salary of less than 50,000 for that just add a wear Clause let's write another cury here so let's use this cery to demonstrate wear Clause copy this query and paste it let's clear this output panel let's add our wear Clause let's execute this query that's the result similarly you can sort the result using order by Clause say you want to sort this result in ascending order according to the employee name for that just add the order by Clause followed by the column name let's once again do our fourth query once again clear this output panel and this time we will select this cury oh sorry and we will use it here now here we will add the Clause order by and the column name will be EMP name if you execute this query then by default the result will be sorted in ascending order let's execute as you can see here is our result if you write DC right after the column your result will be sorted in descending order for example here just after the column name right DC descending now let's execute this cury as you can see our result is now sorted in descending order that's it for today's guys you can download this script from my website link is in the description box this is the last tutorial in outer join Series this means outer join topic is now complete hope you enjoyed watching if you like my video please give me thumbs up your each and every like motivates me a lot for doing more such videos if you have any query feel free to write and please help me in gaining more subscriber by sharing my video with your friends also don't forget to subscribe thanks we'll see you soon this is Manish

Original Description

Links Right Outer Join : http://youtu.be/aiiDEzvkMRk Left Outer Join: http://youtu.be/RihtqOtJ18U website/Blog : http://bit.ly/full-outer-join Wishlist: http://bit.ly/wishlist-amazon Tutorial Detail (Topi covered) Full Outer Join Intro. Full Outer Join Syntax Full Outer Join with ON clause Full Outer Join with Using clause Full Outer Join with Where Clause Full Outer Join with Order By clause 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 from RebellionRider.com
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Manish Sharma · Manish Sharma · 35 of 60

1 Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
2 Oracle Database tutorials 2:How To install SQL Developer on windows 7
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
3 Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
4 Oracle Database tutorials 4:  database connectivity using SQL developer and command prompt
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
5 Oracle Database tutorials 5:  how to Fetch Data using SELECT - SQL statement by Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
6 Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
7 Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
8 Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
9 First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE  - ORACLE DATABASE ADMINISTRATOR
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
10 Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
11 Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
12 Oracle Database11g tutorials 10 ||  SQL Single Row Function (SQL Functions )
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
13 Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
14 how to add channel trailer and section on your youtube channel 2014
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
15 Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
16 Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
17 Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
18 SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
19 Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
20 ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look  - ORACLE DATABASE ADMINISTRATOR
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
21 Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
22 SQL tutorials 17: SQL Primary Key constraint,  Drop primary Key
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
23 SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
24 SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
25 SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
26 SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
27 SQL tutorial 22: How to Add / Delete column from an existing table using alter table
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
28 SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
29 SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
30 Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
31 SQL tutorial 26: Introduction to SQL Joins in Oracle Database
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
32 Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
33 SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
34 SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
36 SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
37 SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
38 SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
39 SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
40 SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
41 SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
42 SQL tutorial 36: how to create database using database configuration assistant DBCA
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
43 SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
44 SQL tutorial 38: How to create user using SQL Developer in Oracle database
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
45 SQL tutorial 39: How to create user in oracle using Enterprise Manager
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
46 SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
47 Motorola Moto G 2nd Generation / G2 Unboxing and Review
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
48 SQL tutorial 41: How to UNLOCK USER in oracle Database
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
49 SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
50 SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
51 SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
52 SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
53 SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
54 SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
55 SQL tutorial 48: How to create Roles in Oracle Database
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
56 SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
57 SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
58 SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
59 Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
60 Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma

Related Reads

📰
CLI Ownership Management: master, owner, and session Commands for Self-Hosted Wallets
Learn to manage CLI ownership for self-hosted wallets with master, owner, and session commands to control access and security
Dev.to AI
📰
Our drift-warning hook was silently dead for 23 days. Zero warnings looked exactly like good behavior.
Learn how a silently dead drift-warning hook can mimic good behavior and what steps to take to prevent and detect similar issues in your system.
Dev.to AI
📰
Spotify expands its AI push with a ChatGPT-like music assistant
Spotify launches a ChatGPT-like AI music assistant for Premium users to discover music and podcasts
TechCrunch AI
📰
A practical checklist for evaluating an OpenAI-compatible AI API gateway
Learn how to evaluate an OpenAI-compatible AI API gateway with a practical checklist, ensuring safe and effective testing
Dev.to · Alex
Up next
Build AI Agents in 2 Minutes using Microsoft Foundry
Rajeev Kanth | BEPEC
Watch →