The growth team wants to know how often new customers buy immediately. A sale counts as a registration-day sale when it happens on the same calendar date as the customer's registration, regardless of the time of day. A sale just after midnight belongs to the next day. Write an SQL query that returns a single column, same_day_sales_pct: the percentage of all sales that were registration-day sales, rounded to 2 decimal places.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.