This website uses cookies to ensure you get the best experience.
Learn more.
An analyst wants all customers listed, including those with no orders, while attaching matching order details when present. Which approach best fits?
Published
- Use HAVING for the aggregate condition.
- Use GROUP BY region with SUM of the sales amount.
- Use a window ranking function and retain the first row per customer.
- Use a LEFT JOIN from customers to orders.
Comments — 0
Sign in to comment