This website uses cookies to ensure you get the best experience.
Learn more.
A report needs one row per region with the total sales amount rather than every underlying transaction. Which approach best fits?
Published
- Use a window ranking function and retain the first row per customer.
- Use GROUP BY region with SUM of the sales amount.
- Use a LEFT JOIN from customers to orders.
- Use HAVING for the aggregate condition.
Comments — 0
Sign in to comment