Skip to content
RED SAGSkills
hard20 pts · first answer countssqljoins

LEFT JOIN that acts like INNER JOIN

You want all customers with their 2026 orders, including customers with none. This query drops customers with no orders: SELECT c.id, o.id FROM customers c LEFT JOIN orders o ON o.customer_id = c.id WHERE o.year = 2026. Why?

Choose one answer