Tags / gaps-and-islands
Joining Gaps and Islands Tables with Teradata SQL: A Step-by-Step Guide
Using Window Functions to Identify Long Chains of Repeating Values in Binary Data
SQL Query to Calculate Sum of Values for Each User and Date, Treating Consecutive Days as a Single Day
Handling Missing Primary Keys for Derived Columns: The LAG/LEAD Puzzle in SQL Server 2012
Selecting Sportsmen in Oracle SQL: Approaches and Limitations for Consecutive Competitions