Tags / gaps-and-islands
Finding Gaps Between Timestamps for Multiple Entries in Data Analysis
Optimizing Date Range Merging with Gaps-and-Islands Problem Solution
Using Window Functions to Identify Long Chains of Repeating Values in Binary Data
SQL Ranking Based on Condition
SQL Query to Calculate Sum of Values for Each User and Date, Treating Consecutive Days as a Single Day