SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Stadium Crowd Streaks

Unsolved

A stadium records attendance once per event day, with ids increasing by 1 in date order. A day is busy when people is at least 100. The operations team wants every busy day that is part of a run of 3 or more busy days with consecutive ids. Write an SQL query that returns id, visit_date and people for those days. Order the results by visit_date ascending.

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 stadium
Full source dataset
12 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine