Q. You want to retrieve all customers from the Customers table, and for those who have placed orders, you also want to see their order information from the Orders table. Customers who have not placed orders should still be included in the result. Which join should you use?
Solution:
A LEFT JOIN is appropriate here because you want all customers (the left table) regardless of whether they have a matching record in the orders table (the right table).
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.