Return coupon_code, redemption_count, and attributed_revenue for non-cancelled orders with a coupon. Count each order once and sum order_total once. Order by coupon_code.
The database is already loaded with the schema and seed data. You are given coupon_report.sql (a query that runs but returns the wrong answer). Fix coupon_report.sql so it returns the correct result.