Skip to content
RED SAG Skills
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

Discussion 0

Join free to post in the discussion.

Related questions