Loading lesson path
Concept visual
Start at both ends
❮ SQL Keywords
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:
SELECT Customers.CustomerName, Orders.OrderIDFormula
ON Customers.CustomerID = Orders.CustomerIDORDER BY Customers.CustomerName;keyword returns all records from the left table (Customers), even if there are no matches in the right table (Orders).
❮ SQL Keywords