Boss: clean the coupon
Coupons were typed by hand: spaces, mixed case, empty strings. Clean first, then group.
task
Normalized coupon (trim, upper, NULL if empty) with the count of orders per value.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Coupons were typed by hand: spaces, mixed case, empty strings. Clean first, then group.
Normalized coupon (trim, upper, NULL if empty) with the count of orders per value.