SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Immediate First Orders

Unsolved

A food delivery app calls an order immediate when the customer's preferred delivery date equals the order date, and scheduled otherwise. Look only at each customer's first order, meaning the order with their earliest order_date (no customer placed two orders on their first day). Write an SQL query that returns a single column, immediate_pct: the percentage of customers whose first order was immediate, 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:
Classic pattern · not tied to a specific company

Submission History

Your recent query executions and answer checks

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