Use window functions to identify consecutive sequences of dates where attendance >= 100. For each such date, compute the difference between the date and a row number to group consecutive dates, then filter groups having at least 3 days. Finally, select all dates from those groups.
Pro tip: Clarify whether the stadium can have multiple events per day; if so, aggregate attendance per date first. Also, consider using a self-join or window functions depending on SQL dialect, and mention performance implications for large datasets.
Select dates where attendance is at least 100, aggregating if multiple events per day exist.
Use ROW_NUMBER() and date arithmetic to assign a group identifier for consecutive dates.
Group by the group identifier and count the number of dates in each group.
Keep only groups that have at least 3 consecutive dates.
Select all dates from the qualifying groups, possibly ordered by date.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.