Tags / gaps-and-islands
Solving Duplicates in Time Periods from Repeated Groups Using SQL Analytics
Selecting Records Where Only One Parameter Changes Using SQL and LINQ: A Deep Dive
Finding Adjacent Vacations: A Recursive CTE Approach in PostgreSQL
Counting Consecutive Numeric Values in SQL: Choosing Between Gaps-and-Islands and Window Functions
SQL Ranking Based on Condition