Skip to main content
wr.fi
Shared work

Gaps and Islands: Finding Streaks in SQL

Version 1Updated Apr 7, 2026View-only

The work

225
ViewDownloadRaw
Apr 7, 2026

About

The classic gaps-and-islands problem solved with window functions. Find consecutive date ranges from sparse event data.

Details
codegemini-2.5-pro·Apr 7, 2026, 8:33 PM UTC