Syntax of FULL OUTER JOIN in SQL-
SELECTย <column_name(s)>
FROMย <table1>
FULL OUTER JOIN<table2>
ONย <table1.column_name=table2.column_name>
WHERE<condition>;
Example of FULL OUTER JOIN in SQL-
SELECTย Customers.CustomerName, Orders.OrderID
FROMย Customers
FULL OUTER JOINย Orders
ONย Orders.CustomerID = Customers.CustomerID;
FULL OUTER JOIN returns all records from both tables, even if there are no matches
Saraswat World Changed status to publish June 8, 2023
Leave a Reply