Answer
A LEFT JOIN returns all rows from the left table along with any matching rows from the right table, filling in NULL for columns from the right table when no match exists, while a RIGHT JOIN does the same thing but reversed, keeping all rows from the right table instead.
SELECT c.Name, o.OrderId
FROM Customers c
LEFT JOIN Orders o ON c.CustomerId = o.CustomerId;Real-world example A customer report uses a LEFT JOIN to show every single customer, including those who have never placed an order, displaying a NULL order id for customers who have not made a purchase yet.