SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Sales on Registration Day

Unsolved

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.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Meta

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM customers
Full source dataset
5 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine