SQL LEFT JOIN Keyword

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








googletag.cmd.push(function() googletag.display('div-gpt-ad-1422003450156-2'); );



SQL LEFT JOIN Keyword


❮ SQL Keywords Reference



LEFT JOIN


The LEFT JOIN command returns all rows from
the left table, and the matching rows from the right table. The result is NULL
from the right side, if there is no match.


The following SQL will select all customers, and any orders they
might have:



Example



SELECT Customers.CustomerName, Orders.OrderID

FROM Customers

LEFT JOIN Orders
ON Customers.CustomerID = Orders.CustomerID

ORDER BY Customers.CustomerName;

Try it Yourself »

Note: The LEFT JOIN keyword returns all records from the
left table (Customers), even if there are no matches in the right table
(Orders).




❮ SQL Keywords Reference


Popular posts from this blog

Malaysia to Papua New Guinea by motorcycle?

List of Bhojpuri films

.name