Skip to main content
wr.fi

Gaps and Islands: Finding Streaks in SQL

code4/6
168
DownloadRaw
Apr 7, 2026

About

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

Files (1)