I've a following query of 'Full Outer Join':
SELECT Customers.CustomerName, Orders.OrderID
FROM Customers
FULL OUTER JOIN Orders
ON Customers.CustomerID=Orders.CustomerID
ORDER BY Customers.CustomerName;
As per my knowledge The purpose of 'Full Outer Join' in MySQL is to return all the rows from the left table (Customers), and all the rows from the right table (Orders).
If there are rows in "Customers" that do not have matches in "Orders", or if there are rows in "Orders" that do not have matches in "Customers", those rows will be listed as well.
My doubt/query is if the 'Full Outer Join' in MySQL is going to return rows from both the tables irrespective of a matching element then is it necessary to specify a condition in WHERE clause? Can't I skip it?
Please give me canonical and to the point answer with respect to MySQL RDBMS.
Thanks.